iphonemobilemap-directions

Link to iPhone map App from HTML page


Is there a way to link to directions in the iPhone map app from a html page?

We're placing an add in an iPhone app which will link to a mobile page on our website - we'd like to add a directions link, thus far google searches have been unrevealing.


Solution

  • Here is a javascript function that creates the link:

    function mapLink(myAddress) {
        return 'http://maps.google.com/maps?q='+escape(myAddress);
    }
    

    This works great on the iPhone.