Thanks, Nic. That helps. So it looks like I would do something like this for my GPS coordinates:
http://maps.google.com/maps?ll=28.401876,-97.748215 Easy enough. I'm not sure from that page what to do if I wanted to pass it a street address instead of coordinates. I'm wondering if you could use the directions destination address without supplying a source address. Like: http://maps.google.com/maps?daddr=1100+Congress+Street,+Austin,+TX+78701 I need to try that to see if it would work. Nic Wise wrote > > I think it depdnds on the URL you pass, and it's a bit pedantic about it > > This might help: > https://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html > > > On Mon, Jul 2, 2012 at 7:47 PM, Chris_M <kungfuchris99@> wrote: >> >> I have a button in my app that is the intended to launch a specific >> location >> (GPS coordinates) in the Google Maps app (I know, later I'll change it to >> launch Apple Maps, but my stakeholders are insistent on doing it this way >> for now). I wrote some code that puts together an appropriate Google Maps >> URL and then uses the NSUrl methodology to launch Google Maps with the >> correct location pinned. It works great, except that what happens is that >> when you tap the map button, Safari starts to launch and *then* the >> Google >> Maps app launches. >> >> I think this makes sense. I'm passing a url to NSUrl, so naturally Safari >> starts to launch, and then Safari's default behavior when passed a Google >> Maps address is to launch the Google Maps app. I don't think it's a big >> deal, but the split second where Safari almost launches bothers my >> stakeholders. >> >> Is there a way I can launch Google Maps and pass it GPS coordinates from >> within my app *without* having Safari try to launch first? > -- View this message in context: http://monotouch.2284126.n4.nabble.com/Opening-a-GPS-location-in-the-Google-Maps-app-tp4655724p4655727.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
