android – How to create a link for all mobile devices that opens google maps with a route starting at the current location, destinating a given place? – Stack Overflow

function myNavFunc(){ // If it’s an iPhone.. if( (navigator.platform.indexOf(“iPhone”) != -1) || (navigator.platform.indexOf(“iPod”) != -1) || (navigator.platform.indexOf(“iPad”) != -1)) window.open(“maps://maps.google.com/maps?daddr=lat,long&ll=”); else window.open(“http://maps.google.com/maps?daddr=lat,long&ll=”);}

Source: android – How to create a link for all mobile devices that opens google maps with a route starting at the current location, destinating a given place? – Stack Overflow


Geplaatst

in

door

Tags:

Reacties

Geef een reactie

Uw e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *