c# - How to find other locations by given distance and coordinate in Google Maps -


i have many locations in google maps. , in database(sql server) stored coordinates. model this:

public class marker {    public int id { get; set; }    public string lat { get; set; }    public string long { get; set; } } 

1 coordinate(latitude , longitude) , 1 radius (i.e 100 meter) given me, should find locations in area inside radius locations list.

how can calculate distance radius on coordinates?

i think need use haversine formula foreach point given point , compare result radius.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -