finding location on mobile device

Devin Asay devin_asay at byu.edu
Tue Nov 13 16:22:36 EST 2018


This has worked for me in the past, but I haven’t tried it in quite some time:

mobileStartTrackingSensor "location", false
put mobileCurrentLocation() into tLocArray
mobileStopTrackingSensor "location"
put "lat: " & tLocArray["latitude"] & cr & "long: " & tLocArray["longitude”] into fld "report"

Devin

> On Nov 13, 2018, at 1:06 PM, Mike for GDC via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I am trying to find my current lat/long on my android device.  I have played
> around with multiple options including "mobileCurrentLocation" and others.
> I have not been able to find an example of code that does it and works.
> What I want to do is push a button, have the lat/long displayed so as I can
> then "feed" it into a map widget for display.  Does anyone have an example
> of code that does just that?  Thanks.  Mike
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Director
Office of Digital Humanities
Brigham Young University



More information about the Use-livecode mailing list