Is there anyway to get the current route information from android google navigation?
For instance people might choose alternative route, avoid tolls, etc. My requirement is to replicate the current route a user has customised and try replicate that on another android device as close as possible.
Google Navigation has no documented and supported API. Hence, one hopes that what you want is not possible, as it would represent a privacy and security flaw.
Related
I am making my first android app to track and manage medications.
One of the features I want to include is adding a page that says '"Find Local Pharmacies'.
What I want is very simple - when the user opens this page I want a map to appear with pins on all the places that matched the term 'pharmacy' (within say a 5km radius).
I have never used Google Maps API before so I don't know if this sort of thing is even possible - online searches suggest Google doesn't have a 'search' API, but is there any easy way to do this?
Thanks!
One option would be to use the Google Places API. I see they've got a place type of "pharmacy".
Simple question, and I think i may already know that the answer is that I cannot do what I want but i can't find confirmation of it. I want a google map in voice guided turn by turn directions mode inside of an activity within my app. It seems like that can be done through their API, but I can't confirm or find whether that can include the voice guided feature and without that, it's not very valuable and I might as well launch the installed google maps app itself and have it skip the default activity and go right into the turn by turn mode with voice rather than embedding it in my activity. I have already done that but would rather have it inside of an activity in my app. Does anybody know for sure if voice guided is offered other than through the installed maps app? Also, any creative ideas or workarounds would be gladly appreciated as well. Thank you.
No.
It's not directly supported by the Google Maps API. You could theoretically cobble it together yourself, using the Directions API and TTS, but the main reason you can't do this is legal rather than technical. From the Google Maps APIs Terms of Service:
10.4.c.iii No navigation. You will not use the Service or Content for or in connection with (a) real-time navigation or route guidance; ...
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:
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.
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.
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/
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
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.
Looking for a little bit of help structuring my problem.
I will be traveling with friends to a party weekend and we are plotting locations of places to visit and see on a shared Google map with custom layers.
My thought is that I could add real-time location layers for each attendee, based on the lat/long of those with Android phones.
I'm trying to figure at the moment the elements of the code that I will need and asking the community for help structuring the design.
So far:
Working on a way to broadcast the current lat/long of the Android phone through an API
Determining the best way to import the returns (lat/long) from the API as a layer into Google Maps (thinking KML, but there may be a better solution with GPX or text files)
Once I finish 1 and 2, will write the code to accomplish the process and load to Google Maps
Any guidance is very much appreciated
Why do you need to develop everything of this sort when Google has already provided us with the My Map app. This app is available in Play Sore for Google as well as the App Store for Apple. So all your friends whether an Android or iPhone user can install this app on their phone.
With this app you all can customize the map as per the needs and share inside the group. This app explicitly serves the purpose for the vacation planning when a group is involved.
Take a look on the Google Play Store and the App Store to explore and download.
I am working an application where user need to develop turn by turn navigation.
I have developed this by using this link
Now this gives me route and very good turn by turn navigation.
But my question is suppose if the user has missed the turn and he takes other turn then how would I come to know that user is not on the path specified?
Need help in this regard.
Thanks in advance
The directions gives you the whole distance of the route, you can check if this distance is increasing, this means he is going on the wrong route which is also not so efficient solution but I can't see any other way to do it unless Google provides directions & navigation in Android Google Maps SDK.