KitaPlatzZentrale / kpz

1 stars 0 forks source link

Geospatial #24

Closed Darjusch closed 1 year ago

Darjusch commented 1 year ago

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

hannogrimm commented 1 year ago

@Darjusch Is the distance to the requested point of each kita still communicated somewhere?

hannogrimm commented 1 year ago

Will add distance calculation to the frontend code of this branch to allow data provision to be static-until-revalidated. Nice for caching.

Darjusch commented 1 year ago

@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.

hannogrimm commented 1 year ago

@Darjusch Added the distance calc. to the frontend.

Darjusch commented 1 year ago

I let you merge when you are ready :D