I want to find a nearest distance between two point. I am creating a ordering based application in which I need to find a nearest distance of customer and provider within a certain range (3km) I am using a postgres as a database and a sequelize as a orm. I don't want want to use Haversine formula in my code is there any way that can I use it
Asked
Active
Viewed 279 times
0
-
Answered here: https://stackoverflow.com/questions/10034636/postgresql-latitude-longitude-query – Miles Elam Mar 02 '22 at 17:47
-
use postgis ... – JGH Mar 02 '22 at 19:21