0

This is my method:

public bool IsPositionInRadious(double centerLatitude, double centerLongitude, int radiosInMeter, double positionLatitude, double positionLongitude)
{
    string apiUrl = @"https://maps.googleapis.com/maps/api/.....";
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl);
    WebResponse response = request.GetResponse();

    return TranslateResponse(response);
}

As you see I want to use google map API to find that is my position is in the circle with specific center and radius. Does any one have any idea? Which API let me find out?

Saeid
  • 13,224
  • 32
  • 107
  • 173
  • 1
    Search for the Haversine distance formulae, thats what you need (No need to use google maps at all) – Gusman Feb 23 '17 at 18:02
  • @Gusman Thank you, I find this: http://stackoverflow.com/questions/22684281/calculating-distance-between-two-points-in-c-sharp#answer-22684452 – Saeid Feb 23 '17 at 18:25

0 Answers0