What I'm trying to accomplish is to launch Google Maps on the iPhone so that it finds directions from the Current Location to the destination latitude and longitude.
However, specifying the current location as above does not work. How can I take advantage of Google Maps's inbuilt current location finding to get these directions? Is there some special syntax I am missing?
The issue is that on the "Maps" application I can get driving directions by specifying my source address as "Current Location." Type it in to the source text field and you'll see we can get driving directions between source and destination.
I want to create an openURL link that takes advantage of that. Reason? Using coreLocation often takes 5-8 seconds to get a reasonably accurate fix. If I can hand that off to Google Maps rather than to my application, my application runs faster.
I think what he's asking is how to send a URL to the Maps application that takes advantage of the "Current Location" bookmark. I, too, would like to do this; has anyone figured out a way?
I think what he's asking is how to send a URL to the Maps application that takes advantage of the "Current Location" bookmark. I, too, would like to do this; has anyone figured out a way?
Can you get the current location from coreLocation, and pass that as the saddr? Does that work? This URL works for me on my phone (OS 2.2, openURL) :
same problem here... the approach of first using Core location to get the current location is not good enough, because if the location detected is not accurate enough, and you're driving by car, for example, you really need to have the maps app continue to try and get a more accurate position. So, I am, too, looking for a way to use the "current location" bookmark from a URL...