IPhone link to a map using the string "current location" rather than lat and lng for saddr
I know there are tons of questions about how to create a sharedApplication reference for a maps app by specifying a start and end address with coordinates. This is not my problem.
Has anyone found a way to associate with the original address, which is usually listed as "current location".
I ask because the scenario I am working on to have a base location or UIMapView was only needed to locate the user before being passed to the map app, where the user's search seems to repeat itself.
I was trying to cast UTF8'd "Current Location" and "[Current Location]" into the saddr parameter, which funny starts with the current Montana. I also tried just excluding the saddr parameter.
I know that this is often territory leaking, but this particular situation was not covered by anything that I found here or on the map. Before I add the main location code, I just wanted to make sure there wasn't a more limited way to solve this problem.
thanks
a source to share
This post is quite old, but recently I had to face a similar issue and I came up with a solution.
Using "Current Location" (properly escaped) as the source address works fine. The downside is that "Current Location" is only valid for English. If your iPhone is set to use a different language, you need to know the exact translation Apple has chosen for that particular language.
I have written a class that can provide an accurate translation for "Current Location" in any supported language. You can read my blog post about this.
Hope it helps.
a source to share