Enchantments to the routing output with GTFS data.#3127
Enchantments to the routing output with GTFS data.#3127elvedin-hamzagic wants to merge 11 commits into
Conversation
- Fixed (recalculated) distance value for "pt" legs in the response of the /route endpoint. - Added shape linestring geometry for "pt" legs in the response of the /route endpoint.
- Refactored changes from last commit. - Rounded up coordinates in shape output data to 6 decimals.
…d in the last update.
|
Further enhancements in output data of "/route" endpoint:
In the future, we could add an input parameter in the request to control whether "shape" field should be included in the output, because the output size can increase significantly, approximately around 20-25%. |
Added route_type, agency_id and agency_name to a route leg for 'pt' legs.
route_type - type of the vehicle used in public transport, e.g. 3 for a bus, 0 for a tram and 11 for a trolley
agency_id - the ID of the operator as stated in the GTFS table agencies.txt
agency_name - the name of the operator