0

Here's an example of what I want to figure out:

  • Device A is at 40.7128 / -74.0060 (lat/lon)

  • Location B is at 40.730610 / -73.935242

  • Radius = 10 miles

And the question: Is Device A within the radius around Location B?

I don't care about the language or technology, just want to get the job done. I know some Python, JS, and Java.

Anyone know a good/efficient way to approach this?

user211309
  • 99
  • 1
  • 13

1 Answers1

0

I would calculate the distance between the two points and check if it's inferior to the radius.

This thread gives some ideas on how to implement it in python: Getting distance between two points based on latitude/longitude

Max
  • 58
  • 6