Google Maps / GPS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

azahn123
Posts: 4
Joined: Wed Apr 20, 2011 7:30 pm

Google Maps / GPS

Post by azahn123 » Thu Apr 21, 2011 12:06 pm

How do I use livcode to track gps and output this to Google Maps ? I want to build an app that allows the mapping of gps points through livecode on my iphone THEN maps these points to a Google Maps (API) ?!

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Google Maps / GPS

Post by Klaus » Thu Apr 21, 2011 12:12 pm

Hi azahn123,

sorry, I have no solution for your problem, but please do only open ONE thread for your question(s)!
Will delete the other threads.

Best

Klaus

azahn123
Posts: 4
Joined: Wed Apr 20, 2011 7:30 pm

Re: Google Maps / GPS

Post by azahn123 » Thu Apr 21, 2011 12:35 pm

Sorry.... Im new to this ...

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Google Maps / GPS

Post by Klaus » Thu Apr 21, 2011 12:57 pm

This is not a question of new or not new 8)

neo42
Posts: 83
Joined: Tue Mar 01, 2011 10:20 pm

Re: Google Maps / GPS

Post by neo42 » Fri Apr 22, 2011 9:31 pm

There is an iOS release notes pdf that can tell you how to get the gps coordinates.


I think that to get google map images, you might have to create a "browser" OR get a url and pass in some gps coords in the url.

I'm not sure yet. I have successfully used the get a url thing to get random numbers from random dot org.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Google Maps / GPS

Post by Dixie » Sat Apr 23, 2011 1:25 am

azahan123...

I've attached a stack that will get you started.

be well,

Dixie
Attachments
LC&GoogleMaps.zip
(80.07 KiB) Downloaded 424 times

azahn123
Posts: 4
Joined: Wed Apr 20, 2011 7:30 pm

Re: Google Maps / GPS

Post by azahn123 » Sat Apr 23, 2011 4:38 am

Thanks Dixie ! Im still trying to figure this out ... But it is very frustrating

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Google Maps / GPS

Post by Dixie » Sat Apr 23, 2011 12:40 pm

azahn123...

I made a mistake about which forum you had posted in... This attached stack is for mobile, the previous one just runs on the desktop.
Hope that it helps you...

take care

Dixie
Attachments
LCMobileMaps.zip
(11.16 KiB) Downloaded 438 times

azahn123
Posts: 4
Joined: Wed Apr 20, 2011 7:30 pm

Re: Google Maps / GPS

Post by azahn123 » Sun May 01, 2011 3:36 pm

Thanks !!!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4036
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Google Maps / GPS

Post by bn » Sun May 01, 2011 4:06 pm

Hi Dixie,

those 2 stacks are way cool. Would have taken me a long time to figure out.(if at all)

Thank you very much.

Kind regards

Bernd

Brittgriscom
Posts: 95
Joined: Wed Mar 30, 2011 10:15 am

Re: Google Maps / GPS

Post by Brittgriscom » Wed May 25, 2011 1:42 am

Dixie wrote:azahn123...

I made a mistake about which forum you had posted in... This attached stack is for mobile, the previous one just runs on the desktop.
Hope that it helps you...

take care

Dixie
I get this error:
button "chooseCity": execution error at line 15 (Handler: can't find handler) near "iphonePick", char 1

Brittgriscom
Posts: 95
Joined: Wed Mar 30, 2011 10:15 am

Re: Google Maps / GPS

Post by Brittgriscom » Thu May 26, 2011 4:53 pm

Durr...it only works in iOS.

Brittgriscom
Posts: 95
Joined: Wed Mar 30, 2011 10:15 am

Re: Google Maps / GPS

Post by Brittgriscom » Thu May 26, 2011 6:16 pm

Now that I'm thinking a little more clearly, I see that this is a really cool app!

How could we make it so that you can zoom out? Show bike lanes? Input your current location?

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Google Maps / GPS

Post by Klaus » Fri May 27, 2011 11:54 am

Hi Britt,
Brittgriscom wrote:Durr...it only works in iOS.
yep, one need to use "if then" to make it (not!) compile.

Code: Select all

...
if the environment = "mobile" then
   ## iOS Stuff here
end if
...
I wish the desktop engine could simply ignore these special
"mobile" commands in the scripts...


Best

Klaus

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am
Location: Bordeaux, France

Re: Google Maps / GPS

Post by Dixie » Tue May 31, 2011 6:20 pm

Hi Britt...
Brittgriscom wrote:Now that I'm thinking a little more clearly, I see that this is a really cool app!

How could we make it so that you can zoom out? Show bike lanes? Input your current location?
To zoom out, then "pinch'. In the simulator, hold the 'option' key down and drag on one of the grey circles that appear.

Be well

Dixie

Post Reply

Return to “iOS Deployment”