Redirect to google maps app

Redirect to google maps app

  

How do i create a link to open the google maps app on the device?

Hi Vinicius,

On iOS it should be something like this:

"external:maps://maps.google.com/maps?daddr=lat,long&ll="

on Android:

"external:http://maps.google.com/maps?daddr=lat,long&ll="

Thanks, for ios worked, android i dont know yet;

But one thing, i want to open the google maps with direction, like i want that he make a route for me starting on my location and ending on the location that i will pass... How could i do this?

You'll have to explore the google maps url scheme,

Vinicius Schonardie wrote:

Thanks, for ios worked, android i dont know yet;

But one thing, i want to open the google maps with direction, like i want that he make a route for me starting on my location and ending on the location that i will pass... How could i do this?


Hi Vinicius,


can you telling me how to make redirect to google map app ?

João Neves wrote:

Hi Vinicius,

On iOS it should be something like this:

"external:maps://maps.google.com/maps?daddr=lat,long&ll="

on Android:

"external:http://maps.google.com/maps?daddr=lat,long&ll="

can i add longitude and latitude?


Just a quick addition: for iOS (and I think this will work the same on Android), I was able to use this URLs directly from this Developer Guide (https://developers.google.com/maps/documentation/urls/guide), and they all worked fine. I did not need to prefix with "external" or "maps" - in fact those did not work for me.

I was able to get this to work: "https://www.google.com/maps/search/?api=1&query=centurylink+field" in an External Site link. 

I set up a variable with it so I can pass in an address and get driving directions to show up immediately.


Then I build the link according to Google's Developer Guide (linked above).


With this sort of work being done on your address:


Thanks,

----Erik