DEV Community

Discussion on: Database realated help 😓

Collapse
 
dmfay profile image
Dian Fay

This is something you want the PostGIS extension for. Store the location as a geographic point with latitude and longitude, and in your query first filter by a bounding box big enough to contain a circle of 3km radius around your user.

See gis.stackexchange.com/questions/83... for more.

Collapse
 
nitishk72 profile image
Nitish Kumar Singh

Thank you, Dian Fay
I will check the PostGIS