Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to open Google Maps with an intent that has multiple pins

Without using the Google Maps API (only launching the maps app with an intent) is it possible to contain multiple coordinates, and therefor have multiple pins on the map that opens? This does not mean creating a rout between two points.

How I do it for one pin:

String uri = "geo:0,0?q="+ Lat + "," + Longitude + " (" + name+ ")";
startActivity(new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)));
like image 562
Ashterothi Avatar asked Feb 17 '12 18:02

Ashterothi


1 Answers

I believe this is impossible. There does not seem to be a way to pass multiple points in through the Geo URI string, and therefore this must be accomplished by using the Google Maps API. I wish it were possible, it would make a lot of simple map tasks much easier to accomplish, but alas.

Link to the intent spec (which does not include any way to pass multiple locations) http://developer.android.com/guide/appendix/g-app-intents.html

like image 136
Brian Alvarez Avatar answered Nov 11 '22 21:11

Brian Alvarez