Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of transit modes or travel options supported by OTP? #3076

Closed
brylie opened this issue May 13, 2020 · 3 comments
Closed

List of transit modes or travel options supported by OTP? #3076

brylie opened this issue May 13, 2020 · 3 comments

Comments

@brylie
Copy link

brylie commented May 13, 2020

We are developing an open-source transportation CO2 estimation library, with planned support for multi-leg and multi-itinerary estimation. Our estimator is based on a model published by the European Environment Agency, with per-passenger-kilometer CO2 coefficients for a few transport modes. We would like to align with the OTP project by ensuring we have a map of all OTP modes to produce CO2 a CO2 estimation from our library.

Is there an official list of transport modes supported by the OTP, such as in the TravelOption class?

@hannesj
Copy link
Contributor

hannesj commented May 13, 2020

The TravelOptions are listed in the RouterInfo class, which can be fetched from the api using the path /otp/routers/<routerId>. Example

All modes are listed in the TraverseMode enum

@brylie
Copy link
Author

brylie commented May 13, 2020

Thanks for your quick response @hannesj

@brylie brylie closed this as completed May 13, 2020
@t2gran
Copy link
Member

t2gran commented May 15, 2020

FYI: In OTP2 we will probably start on supporting the extension modes (GTFS) and NeTEx submodes in the near feature - how we will support this is an open question, and there is no issue for it yet, but in my head sub-modes should be configurable - not statically hardcoded into OTP. If so we can have an official default config with GTFS and NeTEX modes and when needed each deplyment can extend it with any needed mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants