Is it possible to embed Google Navigation in an Android app?

Crocodile picture Crocodile · May 18, 2016 · Viewed 9.1k times · Source

I have an app which opens Google Maps from where the user is likely to start the Google Navigation from point A to B. Is it possible to open Google Maps and therefore Google Navigation only in specific proportion of the screen and display some additional (but minimal) information from my app next to the navigation?

I am thinking of something like this:

enter image description here

Additionally, is it possible to receive a broadcast when during the Google Navigation the user has arrived to her destination?

I know it is a bit far fetched, but maybe there are some ideas.

Answer

Benny picture Benny · Aug 3, 2018

If you are still interested in knowing about this after 2 years. Short answer: Yes (with a but).

If you are asking about displaying a full Navigation experience with turn by turn instructions, a puck, routines on Google Maps, then the answer is: It's illegal to do it without Google's permission. If you look at the Lyft app for drivers, they do have a full navigation experience on top of Google Maps because they partnered with them. So, it's possible, but requires direct communication with Google engineers.

For a workaround, you could show an embed Google Maps view in your apps, and show Markers, Polylines. They also have these APIs to get directions from one place to the other one. For example:

https://maps.googleapis.com/maps/api/directions/json?origin=Disneyland&destination=Universal+Studios+Hollywood4&key=<YOUR_API_KEY>

NOTE: Fees will apply when using these APIs. Check their documentation for more details about the workaround.