Current Location

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Current Location

Post by snop21 » Mon Feb 08, 2016 6:43 am

Hi Guyz,

How can I Get my current location using iOS I am using livecode 8 Community Edition.

Any help is appreciated.

Thank You.

-Ken

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Current Location

Post by Simon » Mon Feb 08, 2016 6:58 am

Probably not use LC 8 and check out the lesson;
http://lessons.livecode.com/m/4069/l/30 ... al-compass
liveCode 7.1 I think is the latest stable version.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Current Location

Post by snop21 » Mon Feb 08, 2016 7:22 am

Thanks for the reply Simon.

There's an Error when I Run the sample stack that you have shared it to me.

Is there any another way to get my current location?.

Thanks

:))
Attachments
Screen Shot 2016-02-08 at 2.19.52 PM.png

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

Re: Current Location

Post by Dixie » Mon Feb 08, 2016 8:55 am

Just tested under LC8 (DP14)... works fine, in the sim and on device..

Code: Select all

on openStack
   if environment() = "mobile" then
      mobileStartTrackingSensor "location", true
   end if
end openStack

on locationChanged latitude, longitude
   set the theCurrentLocation of this stack to latitude & comma & longitude
   put latitude & comma & longitude into fld 1
end locationChanged

snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Current Location

Post by snop21 » Wed Feb 10, 2016 4:13 pm

Hi Dixie..

Thank you.. :))

Post Reply