Distance / time between two points in google maps androids

I want to create a simple application that determines the distance and time to go to some place. The problem is that I do not find really good documentation on google api v2 maps in android.

I already have a map and two places marked with a marker. I tried to pave the way between them, but I get a straight line, and this is not logical for the user who will go somewhere.

1) Is there official documentation google map Api V2?

2) Are there any functions that determine the location between two points, and we can, for example, change the path by dragging and dropping (for example, google maps site)? Or should I use an external class programmed by users?

+4
source share
1 answer

you will need to examine this link for the distance between two locations and time

https://developers.google.com/maps/documentation/directions/

Basically, you will need to make an http call to the google map service, which returns JSON with everything you mentioned above, sort the JSON in readable text for use in java

+4
source

Source: https://habr.com/ru/post/1541695/


All Articles