Crocodile
Crocodile

Reputation: 5845

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

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.

Upvotes: 14

Views: 16025

Answers (4)

Rida Rezzag
Rida Rezzag

Reputation: 3953

You can but you need to contact google personally this is google explanations about this subject and the contract page specially for your request https://cloud.google.com/maps-platform/ridesharing/

Upvotes: 5

Benny
Benny

Reputation: 1738

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.

Upvotes: 19

Gaurav
Gaurav

Reputation: 3763

Not directly from Google map's navigation . But you can create your own by using Direction API. https://developers.google.com/maps/documentation/directions/start#sample-request

Upvotes: 2

Vishal Patoliya ツ
Vishal Patoliya ツ

Reputation: 3238

yes , you can use point an geography point by polygone and line canvas for routing the path between two point on google map.

for more reference reffer this Link.

Upvotes: -1

Related Questions