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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.