Kin
Kin

Reputation: 4596

Is it possible to get path info in google maps?

When creating a new route in the maps there appears a small info about this route: how much time there you will need by car or on foot and the distance? Is it possible to get this info between two LatLng points?

Upvotes: 0

Views: 1287

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117364

What you are looking for is the DirectionsService.

You must request this service and parse the response. A simple route between 2 points contains 1 DirectionsLeg , where you'll find the desired details (e.g. duration or distance)

Upvotes: 1

Related Questions