Getting started with geographical coordinates

hakan at exformedia.se hakan at exformedia.se
Fri Apr 3 16:30:45 EDT 2020


Most of the mobileSomething are wrappers around the system functions so you can learn a lot by reading the ios developer documentation as most of the functions started there.
And reading the docs I can see that you probably get a CLLocationCoordinate2D from the system and that is in turn two doubles in the WGS 84 system. I.e. you get a float for longitude and latitude.

I have code for distance calculation somewhere, that I built for a Quiz walk app, that I made for my sons birthday party several years ago. If you are interested I can dig it up.

I remember that the biggest problem was not calculating the distance it was translating lat long to some meaningful x,y coordinate.

Håkan
On 3 Apr 2020, 21:50 +0200, Graham Samuel via use-livecode <use-livecode at lists.runrev.com>, wrote:
> This is cheeky but I can’t run up my mobile simulation today - can someone tell me the format of the geographical coordinates produced by mobileSensorReading et al. I mean, is say latitude just one integer showing seconds, or is it deg, min, sec - and are fractional seconds returned (so, floating point)? I shall find out for myself eventually but it would help a little to know now. AFAIKS there’s nothing in the LC documentation about it.
>
> Graham
>
> _______________________________________________
> 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



More information about the use-livecode mailing list