Reputation: 75
I have a script that sends a GPS location via text message to both iOS and Android users. Is there a URL/prefix that can be used to tell mobile devices the text is GPS coordinates so it opens in the native mapping app? 48.238921,-84.015450
The only alternative I can think of is adding the coordinates to a google maps URL and if they have the Google Maps app, it would open and if not it would take them to the web version.
http://maps.google.com/maps?z=12&t=m&q=loc:38.9419+-78.3020
Would appreciate any suggestions. Thanks.
Upvotes: 0
Views: 2917
Reputation: 19253
check out geo URI scheme
geo:38.9419,-78.3020
such link clicked on Android will prompt user in which app he want to open it and system will list all navigation-related apps. Google Maps for shure, but user may have some other. The downside is that web browser isn't a "map app", so it won't show on list, also on devices without any map-app (e.g. these without Google Play Services) such links are no-op
Upvotes: 2