So I am trying to understand the decimal longitude and latitude system and I was wondering how they are being quantified. I have been using a Long Lat Finder but unable to understand how these 2 values are quantified.
My goal is given long-lat A, for example (37.349852, -122.023752), I want to design a database query that fetches all the long-lats that are within a 1-mile distance using <= and >= for comparing the long and lat values. Is this possible?
Edit: Ultimately, I want to design an efficient algorithm that compares long-lat at the database level so that given your current location, only the markers placed into the map that are 1 mile within your current location are identified. Imagine 1000s of long-lats in the database and determine how to narrow down the search so that it isn't computationally expensive to determine the markers that are X miles away from you.