I have drawn a circle in Bing maps. Now I need to write code for whether a point (latitude, longitude) is inside or outside of the circle?
Is there any algorithmic code in c#.Net?
I have drawn a circle in Bing maps. Now I need to write code for whether a point (latitude, longitude) is inside or outside of the circle?
Is there any algorithmic code in c#.Net?
Just compute the distance between the center of the circle and your current coordinate
, and compare this distance to the circle radius (distance <= radius means the coordinate is inside the circle).
To compute the distance between two points, use the Haversine formula.
You'll find a C# implementation here.