We use PostgreSQL with PostGIS and Drizzle ORM to calculate distances and find locations within a radius| Marcin Wanago Blog - JavaScript, both frontend and backend