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

accessibility map: No validation is done on the location geojson #899

Open tahini opened 2 months ago

tahini commented 2 months ago

It is possible to create a TransitAccessibilityMapRouting object with an invalid value for locationGeojson. The validation method does not validate that the location is a valid geojson object, and neither does the getAttributesOrDefault function in TransitAccessibilityMapCalculator.ts file.

This is made obvious when calling those methods from the Transition API.

It may be the same for the corresponding origin/destination routing attributes. We should check it at the same time.