How do I check if I am within specific GPS coordinates?

Get help using Construct 2

Post » Tue Mar 24, 2015 6:20 pm

Hello Construct community. I am working on a project but I am having trouble with a certain part. I have an array of 2 GPS coordinates(lat and long) and a distance(Delta Distance) in each row. I want to check if I am within the two coordinates plus or minus the delta distance. Sounds simple right? Well I am using a plugin to get array values as an index instead of 1,2,1 for example. And I cannot understand how to get this to work.

What I am trying to do, currently, is every 1 second go through each row and check if you are within the 2 coordinates(+- Delta Distance) and then give the ID if it's true. That's what I want it to do, but i don't know if it is the most efficient way to go through lots of data. When I run it instead of saying "Welcome to the box" it comes up with "0". Does anyone know how to go through lots of data AND check if you are within the coordinates AND return a "true" value?

If you need more information or want to see what I have done already, pm me and I'll send you some more screenshots.

Thanks,
Bucktoothfrog

Pics: https://dl.dropboxusercontent.com/u/211691600/Code1.PNG and https://dl.dropboxusercontent.com/u/211691600/Code2.PNG
B
4
Posts: 12
Reputation: 224

Return to How do I....?

Who is online

Users browsing this forum: DJKeefy, Lordshiva1948, NgTrent, oddreal and 11 guests