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

api: fix `/api/v1/nodes` when stops are undefined #994

Closed tahini closed 5 days ago

tahini commented 5 days ago

fixes #990

Nodes that are not imported from gtfs may not have the stops data property defined. It is not mandatory anyway, so we should not expect it to exist.

Also add unit tests for the NodesAPIResponse class.