Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pass multiple waypoint to standard google map app in android through intent for navigation ?

I have done some research and i found that adding multiple destination is possible through google map website and one can send the entire navigation plan to google map android app it works perfect.

But in my case i want to generate multiple destination navigation url dynamically through my app and pass it via intent to open google map app in phone. How can this be achieved any ideas would be helpfull .

like image 257
ANAND PURUSHOTTAM Avatar asked Mar 03 '16 12:03

ANAND PURUSHOTTAM


People also ask

Can you add multiple stops on Google Maps app?

With many people looking to sneak one more getaway into their summer plans, we've launched multi-stop directions for Google Maps on iOS (already available on Android). Here's how it works: Just open the app, enter a destination, tap the corner menu, and then tap “Add stop”.


1 Answers

You may generate multiple destination by requesting 'https://maps.googleapis.com/maps/api/directions/json?'. However, you are limited up to 8 waypoints. To get more waypoints for a request, you'll need to get Google Maps API for Work which will allow you up to 23 waypoints.

Regarding Google Maps Intents, in order to launch Maps with an intent, you must first create an Intent object specifying its action, URI and package. For more details, check this link: https://developers.google.com/maps/documentation/android-api/intents

like image 158
Android Enthusiast Avatar answered Oct 02 '22 19:10

Android Enthusiast