javascriptiphonehtmlsafari

How to make an address clickable on a mobile device (like phone numbers are)?


How do I make an address clickable (detectable) by a mobile phone (similar to how phone numbers are)?

For addresses, it doesn't work directly. Is there perhaps an HTML tag for this?


Solution

  • Mobile devices look for 'http://maps.google.com/maps?' in the URL to launch the google maps app.

    <a href='http://maps.google.com/maps?q=New+York+city&hl=en&sll=37.0625,-95.677068&sspn=58.598104,135.263672&vpsrc=1&hnear=New+York&t=m&z=11'>View in google maps</a>