Calculate Driving Distance Between 2 Coordinates (1 Viewer)

fbcma

New member
Local time
Today, 20:00
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.
 

plog

Banishment Pending
Local time
Today, 05:00
Joined
May 11, 2011
Messages
11,638
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.
 

fbcma

New member
Local time
Today, 20:00
Joined
Jul 9, 2020
Messages
2
What about Bing API?
 

Gasman

Enthusiastic Amateur
Local time
Today, 11:00
Joined
Sep 21, 2011
Messages
14,233
This thread might help?
 

isladogs

MVP / VIP
Local time
Today, 11:00
Joined
Jan 14, 2017
Messages
18,209
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
 

Minty

AWF VIP
Local time
Today, 11:00
Joined
Jul 26, 2013
Messages
10,368
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

Top Bottom