Closed Darjusch closed 1 year ago
@Darjusch Is the distance to the requested point of each kita still communicated somewhere?
Will add distance calculation to the frontend code of this branch to allow data provision to be static-until-revalidated. Nice for caching.
@Darjusch Is the distance to the requested point of each kita still communicated somewhere?
Right, you need that for the Frontend. We could add the distance calculation again after the Data is fetched from the Database. Let me know if you prefer that should be quick to implement again.
@Darjusch Added the distance calc. to the frontend.
I let you merge when you are ready :D
Optimisation of Database search by GeoJson.
This is a test DB with whitelisted IP's to try out replace your connection string with this:
MONGO_DB_CONNECTION="mongodb+srv://kpz-dev-dev:VHU8AB1LvxMIjSN7@cluster0.sbzeafr.mongodb.net/realData"
You can run: npm run test
Or setup local and request: http://localhost:3000/location-service/52.519850/13.388340/4000/1/10