opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.18k stars 1.02k forks source link

Fix parsing of GBFS feeds #5891

Closed testower closed 4 months ago

testower commented 4 months ago

Summary

When the GBFS model moved to MobilityData an inadvertent change was made to the implementing class mapper, so gbfs.json pointed to the generated class for v2.3, which does not work. The upgrade includes https://github.com/MobilityData/gbfs-json-schema/pull/129 which reverts to the original behavior of mapping to the hand-written class.

Issue

Closes #5889

Unit tests

Test case courtesy of @leonardehrenfried (https://github.com/ibi-group/OpenTripPlanner/commit/ff938e31573837df9bf770ecfd0ebe3857b6cffb)