A table with elements (id, name, lat, lon)
. Via a query I get the lat and lon of the user. Now I want to make a query against my database (MariaDB
). Give me all elements that are within 1000 meters of these coordinates.
There are ~300.000 elements in the database. My problem right now is that unfortunately I don't know how to make the query.
Can someone please give me an abstract sketch of how to make the query?