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 »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Google Maps / GPS

Post by Klaus »

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 »

Sorry.... Im new to this ...
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Google Maps / GPS

Post by Klaus »

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 »

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

Re: Google Maps / GPS

Post by Dixie »

azahan123...

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

be well,

Dixie
Attachments
LC&GoogleMaps.zip
(80.07 KiB) Downloaded 559 times
azahn123
Posts: 4
Joined: Wed Apr 20, 2011 7:30 pm

Re: Google Maps / GPS

Post by azahn123 »

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

Re: Google Maps / GPS

Post by Dixie »

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 587 times
azahn123
Posts: 4
Joined: Wed Apr 20, 2011 7:30 pm

Re: Google Maps / GPS

Post by azahn123 »

Thanks !!!
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Re: Google Maps / GPS

Post by bn »

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 »

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 »

Durr...it only works in iOS.
Brittgriscom
Posts: 95
Joined: Wed Mar 30, 2011 10:15 am

Re: Google Maps / GPS

Post by Brittgriscom »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Google Maps / GPS

Post by Klaus »

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

Re: Google Maps / GPS

Post by Dixie »

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