Prior to iOS 6, I used this URL scheme to open a native map application and find directions from users' current location to the address I created.
http://maps.google.com/maps?daddr= "+ address +" & saddr = Current + Location
This works fine, but now that they got rid of google maps with iOS 6, we had to check which version of iOS they were included in, and then refer to the new Apple map URL scheme if they use iOS 6.0 or higher. The new URL scheme we use is ...
http://maps.apple.com/maps?daddr= "+ address +" & saddr = Current + Location
This is based on the new documentation for map URL schemes, which can be found here.
Anyway, I tested it on a bunch, and it comes down to new Apple maps that recognize the current location, like google maps.
Does anyone know how I can fix this?
Keep in mind that I am creating an html application with a gap in the phone, so using my own code to set the starting address to the current location will not help me.
url-scheme ios6-maps
Ben Doherty Sep 21 '12 at 22:33 2012-09-21 22:33
source share