Calculate Driving Distance Between 2 Coordinates

fbcma

New member
Local time
Tomorrow, 04:09
Joined
Jul 9, 2020
Messages
2
I am using Access 2013 and am developing a form where the user provides two coordinates.
And the form will calculate the driving distance between these 2 coordinates.
I'm not sure where to start. Any input/sample would be greatly appreciated. Thanks.
 
Geometry would give you the distance between 2 points, but you want driving distance which is going to require a map. I'd check out the google map API:


I've only done a cursory google search ('driving distance in google map api'), but it looks like others have tried to tackle this.
 
What about Bing API?
 
This thread might help?
 
You can also 'cheat' by using a form which loads the Google (or Bing) route planner map for the two sets of co-ordinates entered.
This is a screenshot from one of my apps which does that using postcodes rather than coordinates, but the principle is the same.
1594297605668.png
 
That code @Gasman has posted worked really well for UK postcodes in an app I used about 8 years ago, kudos to @jdraw
 

Users who are viewing this thread

Back
Top Bottom