The struggle for the introduction of google directions api in the Android application

I would like to implement the google walk / cycle directions in the Android application that I am creating, but I am struggling to figure out how to do this. I admitted that the most acceptable way is to request google via http to retrieve the kml file, which translates back to the Android app. since I was a Java / Android programmer for the day, I'm just afraid of abit! Is there anyone who can point me to a pretty comprehensive tutorial on how to achieve a simple navigation application from A to B or even better send me a simple project for me to view, break and adapt!

Any help is greatly appreciated.

Yours faithfully

+3
source share
1 answer

The same was discussed here:

Launching Google Maps Directions through Android Intention

use the following code:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=20.344,34.34&daddr=20.5666,45.345")); startActivity(intent);

0
source

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


All Articles