Reputation: 131
I have a link in a jquery mobile web app that links to address. I've tried using apple's map url scheme but have had not luck in getting the link to open in the iPhone's map application.
Currently, I have tried the following:
<a href="http://maps.apple.com/maps?q=dallas">Map: 2001 Flora Street, Dallas</a>
<a href="http://maps.apple.com/maps?q=2001+Flora+Street,+Dallas,+TX">Map: 2001 Flora Street, Dallas</a>
Both links fail to open the iphone map application, and instead open the location in a google maps web app window.
Any way to make the address open in the iphone native maps app?
Upvotes: 2
Views: 3688
Reputation: 131
Looks like changing the code to the following works:
<a href="maps:q=2001+Flora+Street,+Dallas,+TX">Map: 2001 Flora Street, Dallas</a>
Upvotes: 2