Reputation: 1623
I want to invoke the native device maps app to show some directions between the current position of a user and another location.
In iOS 6 it's working this way:
<a href="http://maps.apple.com/maps?daddr=lon,lat&saddr=lon,lat"></a>
But how is this working on other platforms e.g. on android?
Upvotes: 2
Views: 1382
Reputation: 30974
In Android, you can use a geo:
url to achieve this.
Have a look at the Android documentation for the parameters.
Basically it goes
<a href="geo:lat,lon">My place</a>
It may be that this fires the application selector on the user's device, as the user may have installed more than "maps" kind of app.
Upvotes: 2