This is a little test for drawing on maps using maplibre-gl, geoapify and turf.js.
It's built from the standard nextjs/react template.
Before running it, you have to create an .env-file (see .env.example) with your geoapify key in it.
npm installand
npm run devIt enables you to find a meeting place for up to 5 friends so that everybody's walking time is kept to a minimum. It uses
- the midpoint/centroid of all points to estimate the maximum distance
- the geoapify isoline api to fetch isolines with that distance for each of the points.
- If the areas don't intersect yet, the walking time is increased by 1 minute until they do.
