Page 1 of 1
How do I Access Map location on mobile?
Posted: Wed Oct 02, 2013 2:47 pm
by Mag
Hi all!
I want to implement a button that opens the map app of the device and shows a specific location.
I saw this lesson
http://lessons.runrev.com/s/lessons/m/4 ... aps-on-ios but it is missing the way to specific a location, I also read this amazing topic
http://ftp.runrev.com/forums/viewtopic. ... 47&p=73479 but it's a bit too advanced for my purposes.
Does anyone know how do you open the maps at a specific point?
Re: How do I Access Map location on mobile?
Posted: Fri Oct 04, 2013 4:22 pm
by Mag
No ideas?
Your message contains 9 characters. The minimum number of characters you need to enter is 10.
Re: How do I Access Map location on mobile?
Posted: Fri Oct 04, 2013 5:42 pm
by Simon
Re: How do I Access Map location on mobile?
Posted: Sat Oct 05, 2013 10:21 am
by Mag
Thank you so much Simon. Very useful info!
PS
Unfortunately under iOS in my tests this don't opens the default Maps but Safari, would be great to get to open the default Map app.
Re: How do I Access Map location on mobile?
Posted: Sat Oct 05, 2013 4:42 pm
by Simon
Ahh yes, sorry I forgot iOS has their own mapping program.
Not sure how to trigger that one.
Simon
Re: How do I Access Map location on mobile?
Posted: Sun Oct 06, 2013 7:54 pm
by Mag
I Simon,
Your hel was important, I will follow that way, users like also google maps.
I think that a way could exist a way to open iOS own maps, but it needs to study a way to do it...
http://stackoverflow.com/questions/1250 ... p-in-ios-6
Re: How do I Access Map location on mobile?
Posted: Tue Oct 08, 2013 6:15 am
by Nakia
Mag,
I have used the method you mention in the stack overflow article and it works fine.
Re: How do I Access Map location on mobile?
Posted: Thu Oct 24, 2013 11:17 am
by Mag
Thank you Nakia,
Ok, for convenience I post here the code to open the maps based on the device (if anyone has the enhancements please post as well):
Code: Select all
if the platform is "android" then -- use the google maps
launch url "https://maps.google.it/maps?q=one+infinite+loop+1+cupertino"
else if the platform is "iphone" then -- use the apple maps
launch url "http://maps.apple.com/maps?q=one+infinite+loop+1+cupertino"
end if