Calculate distance between two Geocode. RRS feed

  • Question

  • I am trying to implement web services based solution with Bing maps. I was able to implement the Geocode and route web services. I was wondering how would I calculate miles between two geocodes.


    Monday, March 29, 2010 9:23 PM


All replies

  • To avoid any confusions:  I am looking for the shortest driving distance in miles.

    Monday, March 29, 2010 9:34 PM
  • If you want to calculate the straight line distance than you will want to use the Haversine formula (http://rbrundritt.spaces.live.com/blog/cns!E7DBA9A4BFD458C5!317.entry ). If you want driving distance than you will need to run your coordinates through the routing engine.

    Windows Live Developer MVP - http://rbrundritt.spaces.live.com
    • Marked as answer by manojmsdn Monday, March 29, 2010 10:43 PM
    Monday, March 29, 2010 9:58 PM