user
user

Reputation: 11

Google apps script map api for distance calculation between two points

I know there is an api to calculate the distance between two points for google apps but what i am looking for is the google apps script api to calculate the driving distance not the direct distance between two points. Is there such an api?

Upvotes: 0

Views: 2749

Answers (2)

Sammy
Sammy

Reputation: 31

One can follow the below link to get more details about it. Calculating driving distance with google map api v2

Upvotes: 0

Antonio
Antonio

Reputation: 381

Google directions API gives you the total distance between the source and destination. try this

http://maps.googleapis.com/maps/api/directions/json?origin=nj&destination=ny&sensor=false

API Documentation here

Upvotes: 2

Related Questions