How to open Google Maps (or alternative) navigation with multiple destinations? - android

I'm working on a cross platform (iOS & Android) app that requires the user to follow a (possibly closed) path made of several destinations.
So far it seems that my best option is to find a way to open Google Maps with a URL like this: https://www.google.com/maps/dir/San+Jose,+CA/GooglePlex/San+Francisco,+CA
Besides the fact that such url opens the browser first and not the app directly, Google Maps doesn't enter the "navigation" mode.
I analyzed the SDK and there doesn't seem to be a way to instantiate a path with multiple destinations.
Is there a way to achieve navigation on multiple destinations in Google Maps? If not, any alternative with "navigation" mode?

Yes you can achieve navigation in multiple direction
1) in navigation map first it has been showing one direction , there your calling one api, check that api you will get multiple direction data, just you have to parse the all data by using loop and need to do custom implementation.

Related

How to test Here Map Android SDK Navigation

Using HERE Mobile SDK for Android, we tried to test the navigation and created a GPS Feeder for mock locations. We get different results using position manager vs navigation
Using the position manager, we tracked the location as in this image
(click here)
Using the position listener from the navigation manager
(click here)
We also tried with HERE WeGo Android App from Android Play Store, and we had the same issues.
But using Google Navigation, this issue didn't happen.
Do you know any other solution for Navigation testing?
Best for testing your navigation is to use navigationManager.simulate(navigationRoute, 60); Then you will be driving along the route, however, you cannot test how the route is being recalculated in case you don't follow the route.
If you want to real testing means when you are moving and navigation updates you then you have to use navigationManager.startNavigation(route) instead of navigationManager.simulate(navigationRoute, 50);

is it possible to implement Turn by Turn navigation sdk from mapbox on Android Google Maps?

i have create a tracking project using maps from Google on android kotlin, and i want to create more that user can go to somewhere with navigation (so there's two point, a current location point and destination point). i want to implement turn by turn navigation sdk from mapbox? is it possible to do that? have you build it before?
ya turn by turn navigation is tricky.Map box should make it easier though u just have to implement there sdk in your project and they also have docs on how to use the Map box sdk. only downfall is you have to pay for it.
i would advise if you are creating a personal project try creating a location listener and update current position of the device on a google maps intent. you can then just create your own navigation app ( its abit of a longer way around it but you would have more control over the navigation and plus its free)

Android google maps navigation without Intent

I tried navigation with Intents when user click on marker and it's work well. Problem is that I need implement that in my own app. (without opening GoogleMaps app)
How to start implement navigation from current location to markers in my own app without intents? Any help will be appreciated :)
You may use this library. It uses Directions API but in free plan it has limit to 2500 requests/day.

Accessing current google navigation status

I would like to create a drivers screen where some useful information are displayed. I want to display navigation hints, but I don't want to program a whole navigation system.
Is there a way to access the current navigation hints from google navigation or any other free navigation app?
I prefer access to an android app, because I thought the easiest prototype would be an android app. But I'm thankfull for any information about it and how this could be achieved.
I would suggest checking if your use case is compatible with restrictions exposed in the Terms of Service of Google Maps API. Have a look at section 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; or (b) automatic or autonomous vehicle control.
https://developers.google.com/maps/terms#section_10_4

how to embed a custom map from google maps into an app

I created a custom map using Google Maps that has highlighted features of the local waterways around my boat company. The map is set to be shared publicly and can be found here: https://www.google.com/maps/#28.1159901,-80.5874005,10z/data=!3m1!4b1!4m2!6m1!1sztQRD4WV85yk.kzRrtK6ZMD3E
My question is can I embed this map on an app that I am developing through Como Mobile App Creator? The app already has a map page powered by Google maps but it just shows the location of the company on a standard Google map; I want to embed the custom map I created so that it shows up in the app.
The Como App Maker also features a custom page wherein you can add source code, and I got the source code from Google maps and tried to add it in there but the custom page just shows up blank in the app. Here is the source code I used: iframe src="https://mapsengine.google.com/map/u/0/embed?mid=ztQRD4WV85yk.kzRrtK6ZMD3E"width="640" height="480"
How do I embed my custom map on the app I am making?
One reason I can see is: mapsengine is deprecated and new mapsengine projects are not accepted anymore.
Potential solution steps:
1) Use My Maps instead of Maps Engine.
2) Create custom map by importing your map layer there.
3) Save that map and go to share. Make it public (pick & choose view only or can edit).
4) Click on options (drop down) menu on the right of where "Add Layer" and "Share" are and choose "Embed on my site". You will be provided with an iframe.
This will embed that custom map you just created in your app.
Few things to keep in mind:
My Maps are ideal only for
1) Less than 2500 map views per day.
2) The data in the map does not change very frequently.
3) However, the embedded map will reflect the changes (if any) made (by you or people who has edit permissions) to the map in My Maps.
EDIT:
I'm sorry I did not check the URL before. So I went to it now and loaded it in My Maps. I got this iframe. See snippet.
<iframe src="https://www.google.com/maps/d/embed?mid=ztQRD4WV85yk.kzRrtK6ZMD3E&hl=en" width="640" height="480"></iframe>
But I would still encourage to make it in My Maps if this one was made in mapsengine so it is still there after mapsengine is stopped altogether in January 2016 (see Deprecation notice here).
Hope this helped.

Categories

Resources