Re: Getting started with geographical coordinates

2020-04-07 Thread Alex Tweedly via use-livecode
Thanks. Can’t think of a better place to be locked in! I’m sure Google thinks of what3words as a competitor, but also I suspect w3w keeps their mapping very close to their chest as a proprietary asset. Alex . Sent from my iPad > On 7 Apr 2020, at 16:58, Ben Rubinstein via use-livecode >

Re: Getting started with geographical coordinates

2020-04-07 Thread Ben Rubinstein via use-livecode
What a beautiful view you have! Interesting that Google Maps doesn't accept what3words yet - possibly viewed as a competitor. On 04/04/2020 01:49, Alex Tweedly via use-livecode wrote: And I'm at plump.magpie.tightest (sorry, no calculated height available, not even in annoying feet - but I'd

Re: Getting started with geographical coordinates

2020-04-07 Thread Graham Samuel via use-livecode
Thanks for everyone who has helped with this so far. I have now looked at and tested LC scripts for three different functions for finding the distance - I left one well-known one out (Vincenty) as it’s very complex (it even includes iteration) and I think not justified by what I’m trying to do.

Re: Getting started with geographical coordinates

2020-04-05 Thread Mark Wieder via use-livecode
On 4/5/20 1:03 PM, Graham Samuel via use-livecode wrote: constant k1 = 0.017453 -- that's pi/180 We're 20 years into the 21st century. Isn't it about time we could type constant k1 = pi/180 -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode

Re: Getting started with geographical coordinates

2020-04-05 Thread Graham Samuel via use-livecode
I’ve been trying these formulae out, and I’ve been using the info on https://www.movable-type.co.uk/scripts/latlong.html - for my purposes (distances from say 100 metres to up to a few kilometers) I think this works as well as haversine, but maybe not for every kind of measurement. The function

Re: Getting started with geographical coordinates

2020-04-04 Thread Bob Sneidar via use-livecode
Exactly. :-) Bob S On Apr 4, 2020, at 10:59 AM, J. Landman Gay via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: A quip from my college days: Time is what keeps everything from happening all at once. Space is what keeps everything from happening to YOU. -- Jacqueline Landman

Re: Getting started with geographical coordinates

2020-04-04 Thread J. Landman Gay via use-livecode
A quip from my college days: Time is what keeps everything from happening all at once. Space is what keeps everything from happening to YOU. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On April 4, 2020 12:25:14 PM Bob Sneidar via

Re: Getting started with geographical coordinates

2020-04-04 Thread Bob Sneidar via use-livecode
I see where people get confused. When we talk about dimensions, for most people the “Physical” in “Physical Dimensions” is implied, just like when Dad says, “Hand me the map”, what he really means is, “Hand me the plastic coated street and highway map of the state of California that we just

Re: Getting started with geographical coordinates

2020-04-04 Thread Mark Wieder via use-livecode
On 4/4/20 8:37 AM, Bob Sneidar via use-livecode wrote: Once I caught on, I realized that Mathematics was really a kind of numerical language for defining aspects of this 3 dimensional nature we call The Universe. You're still stuck in 3? Try 10. https://www.youtube.com/watch?v=0ca4miMMaCE

Re: Getting started with geographical coordinates

2020-04-04 Thread Bob Sneidar via use-livecode
[ALERT: Waxing Philosophical] I wholeheartedly agree. These people UNDERSTOOD Mathematics. This was a big problem for me as a child. I failed 6th grade math and had to go to summer school to pass, partly because I was lazy and wouldn’t do my home work, but also because I would sit in class and

RE: Getting started with geographical coordinates

2020-04-04 Thread Ralph DiMola via use-livecode
A friend of mine turned me on to this 10 years ago. This is the Haversine formula. It assumes that the earth is sphere and is not very accurate for very small distances. I have not tried to use the Vincenty's formula that does better. For general purposes the HF should be sufficient. Just give me

Re: Getting started with geographical coordinates

2020-04-03 Thread Alex Tweedly via use-livecode
And I'm at plump.magpie.tightest (sorry, no calculated height available, not even in annoying feet - but I'd guess somewhere around 2 or 3 metres). Alex. On 03/04/2020 23:07, Graham Samuel via use-livecode wrote: A long way from me at 43°16′43″N 2°09′36″E

Re: Getting started with geographical coordinates

2020-04-03 Thread Andrew at MidWest Coast Media via use-livecode
I feel that Calculate Distance script has been shared before, because it looks strikingly similar to one that I use in my mobile app (and is WAY better written than I ever could have done), so thank you. Recently I was tasked by my cousin to come up with a delivery system for his brewery since

Re: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
A long way from me at 43°16′43″N 2°09′36″E - and much higher (I’m about 130m). Sorry not to be quite so accurate! Thanks Graham > On 3 Apr 2020, at 22:28, Devin Asay via

RE: Getting started with geographical coordinates

2020-04-03 Thread Ralph DiMola via use-livecode
Thanks Bob. Whoops... I forgot to include this: Function deg2rad deg Return (deg * PI / 180.0) end deg2rad Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On

RE: Getting started with geographical coordinates

2020-04-03 Thread Ralph DiMola via use-livecode
et -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Graham Samuel via use-livecode Sent: Friday, April 03, 2020 3:49 PM To: How to use LiveCode Cc: Graham Samuel Subject: Re: Getting started with geographical coordinates This is cheeky but

Re: Getting started with geographical coordinates

2020-04-03 Thread Håkan Liljegren via use-livecode
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

Re: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Graham, You get back lat and long in degrees and fractions of degrees, as a decimal numeral. For instance, I get latitude: 40.248676 and longitude: -111.651062, and for good measure altitude in meters at 1398.380493. Wow, now you all know exactly where I am! Devin > On Apr 3, 2020, at 1:49

Re: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
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,

Re: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
sts.runrev.com] On Behalf > Of Graham Samuel via use-livecode > Sent: Friday, April 03, 2020 11:18 AM > To: How to use LiveCode > Cc: Graham Samuel > Subject: Getting started with geographical coordinates > > Hi > > I am reviving my LiveCode skills in these troubled tim

Re: Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
Wow, Devin, that is luck! I shall look at it instantly. I have got a little further on my own but am rather disturbed that there seem to be iOS functions with no Android equivalent, e.g. mergCLDistanceBetween - but I am still totally ignorant really. Thanks Graham > On 3 Apr 2020, at 17:42,

RE: Getting started with geographical coordinates

2020-04-03 Thread Ralph DiMola via use-livecode
ecode-boun...@lists.runrev.com] On Behalf Of Graham Samuel via use-livecode Sent: Friday, April 03, 2020 11:18 AM To: How to use LiveCode Cc: Graham Samuel Subject: Getting started with geographical coordinates Hi I am reviving my LiveCode skills in these troubled times, and I want to do someth

Re: Getting started with geographical coordinates

2020-04-03 Thread Devin Asay via use-livecode
Hi Graham, As fate would have it I just created a video tutorial for my students on reading mobile device sensors. http://livecode.byu.edu/mobile/devicesensors-index.php Hope you find these useful. Devin On Apr 3, 2020, at 9:18 AM, Graham Samuel via use-livecode

Getting started with geographical coordinates

2020-04-03 Thread Graham Samuel via use-livecode
Hi I am reviving my LiveCode skills in these troubled times, and I want to do something that involves the location of a device using GPS. A very rapid (obviously too rapid) search of the documentation finds commands like iphoneStartTrackingLocation, but no link to a description of how one