Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to place a pin into the google maps iphone app using openURL?

I would like to create an iPhone app that can open the google maps app and place a pin on the map.

I have the exact location of the pin, specified by its longitude and latitude. I also have a name for the pin e.g. 'location 1' that should be displayed along with the pin.

I know that UIApplication:openURL can be used for this but I don't know the exact url format.

So, is there a way to do what I described above? If, yes, what is the correct url format?

like image 904
Panagiotis Korros Avatar asked Oct 20 '08 12:10

Panagiotis Korros


2 Answers

You can use a URL of the format: http://maps.google.com/maps?q=Your+Location+name@latitude,longitude

http://maps.google.com/[email protected],-87.6315

like image 186
Ben Gottlieb Avatar answered Nov 15 '22 17:11

Ben Gottlieb


You can drop up to 100 pins using KML. There is an example of this on http://appsamuck.com look at the example for day 8 (http://appsamuck.com/day8.html)

like image 34
Jamey McElveen Avatar answered Nov 15 '22 18:11

Jamey McElveen