google maps - Geo Intent, how to auto launch directions -


currently developing ionic mobile app , have directions button on 1 of pages.

currently setting intent this

if(address.length !== 0){     address = "(" + address + ")"; } var location = getdrivinglocation(); var url = encodeuri(location.latitude + "," + location.longitude + "?q=" + location.latitude + "," + location.longitude + address); window.location = "geo:" + url + "&z=18"; 

it launches map , current spot, still need press directions button manually on google maps start directions. there in url can change make auto start?

you can try use url scheme, url scheme allows launch ios application ios app. these supported url schemes:

  • comgooglemaps:// , comgooglemaps-x-callback:// - these schemes allow launch google maps app ios , perform 1 of several actions:

    • display map @ specified location , zoom level.

    • search locations or places, , display them on map.

    • request directions 1 location another. directions can returned 4 modes of transportation: driving, walking, bicycling , public transit.

    • add navigation app.

  • comgooglemapsurl:// - scheme allows launch google maps app ios using url derived desktop google maps website. means can give users native mobile experience rather loading google maps website.

for more information can check page.

i don't know if want, can check example. think give idea.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -