10 metres?
You could use the Haversine formula to calculate the distance between two sets of coordinates.
https://thisinterestsme.com/php-haversine-formula-function/
or use geospatial features of your database to search by proximity
https://dba.stackexchange.com/questions/4214/how-to-best-implement-nearest-neighbour-search-in-mysql