On iOS, when visiting some web pages, an actual address or a postal location, e.g. 10 Downing Street, London, SW1A 2AA, will act as a link to open the iOS default Map App. This doesn’t always happen with a valid address, so I am wondering if there is an additional step required to tag or mark the address as a postal address and link to the Map App if clicked on.
Does anyone know how to achieve this.
Note. This is different to opening a link to Google Maps. Links to Google Maps don’t work unless the page visitor is logged into Google.
ok, anyway even having IOS, someone would like to open the link on Google Map.
I think putting the 2 options is better as a choice.
otherwise on apple devices it could always open Apple Map to you and vice versa.
IMHO the danger with a link to Google Maps is that if the page visitor is not logged into Google, or not prepared or able to sign into Google, or register with Google and then sign in, they may give up on this critical stage, and then go elsewhere.
Having a system to detect and use your choice of Map App, and there are many more Map Apps than just Apple and Google, will be a 1 click route into your choice of Map App, and AFAIK the best solution.
Could you use the two link method as suggested by Gianluca but use Joe’s Agent stack to display the appropriate link depending on which OS the user has?
Yes, I saw from the above that you were looking for an attribute on an HTML element but I thought it had been nearly a week and the simple JS solution is rock solid and just works.