Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed google turn by turn navigation in my app?

I am building an android app that helps the user navigate between two points. This is the link to the doc. This is the exact functionality that I want to provide to the user, however I want the navigation to take place in my app rather than by launching the intent in this way

Uri gmmIntentUri = Uri.parse("google.navigation:q=Taronga+Zoo,+Sydney+Australia");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.setPackage("com.google.android.apps.maps");
startActivity(mapIntent);

I have embedded google map in my app but cannot think of how to implement this navigation. Can somebody guide me or provide any hints or tutorial regarding the same? Thanks in advance !!

like image 801
varunkr Avatar asked Aug 20 '15 14:08

varunkr


1 Answers

It's not possible in Google Maps V2 API. Better to used HERE Maps for that. I recently implemented in my app and it's awesome.

Reference go to https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/map-guidance.html

Also go to Here maps is not working

Looks like:

enter image description here

like image 179
M D Avatar answered Oct 20 '22 03:10

M D