chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

geoJSON utils: Add a `getPointCoordinates` function #953

Closed tahini closed 1 month ago

tahini commented 1 month ago

This function takes any geojson object and will return the coordinates if it is a Point, a Point feature or a feature collection with only one Point feature. Otherwise, it returns undefined.

Also add tests for the GeoJSONUtils functions.