I'm building an angular 4 website that receives a list of lat/lng from the server and have a button that refers to Google Maps and constructs a route.
My desire is to refer the user to Google Maps app.
I'm creating the url:
http://maps.google.com/maps/dir/{origin lat},{origin lng}/{destination lat 1},{destination lng 1}/{destination lat 2},{destination lng 2}/{destination lat 3},{destination lng 3}/data=!3m1!4b1!4m2!4m1!3e0
And then refers to the app by:
var win = window.open(url, '_blank');
win.focus();
On iPhones/iPads it works perfectly and the app is opened with the route, On Desktop it refers to Google Maps site with the route. However on android it opens the GoogleMaps app but without the route.
(GoogleMaps app was installed on all iPohnes/iPads/android devices testes)
How can I make the GoogleMaps app to open with the route also in android?
Aucun commentaire:
Enregistrer un commentaire