WRI-Cities / static-GTFS-manager

GUI interface for creating, editing, exporting of static GTFS data for a public transit authority
GNU General Public License v3.0
147 stars 46 forks source link

Extended GTFS Route Types #125

Closed EarlThorfinn closed 5 years ago

EarlThorfinn commented 5 years ago

Hi, I'm working on a project where I need to add a route type for an air service, for short flights, in the same database as bus and ferry routes.

I was wondering if it is (or would be) possible to add a route type for an air service in static-GTFS-manager?

For example, using the Extended GTFS Route Types - https://developers.google.com/transit/gtfs/reference/extended-route-types

Thanks

answerquest commented 5 years ago

@EarlThorfinn sure we can.. there was limited scope earlier so I had restricted the input to selection as a way of avoiding errors, but am now seeing the argument for just keeping it open to allow for flexibility.

I'll change it in next release but it's in a pipeline and may take time. Meanwhile, you could make a very quick small change at your own end to get what you need, and this will work even with the windows exe version as it's a frontent/javascript change only. Just follow these instructions:

That should do it. You can now just type in your route type.

Request: I need user feedback for this project. Just some broad questions. Can u email me privately on nikhil.js[at]gmail.com ? Thanks in advance, and do post here for more requests or bugs.

answerquest commented 5 years ago

OR if you want to keep the drop-down behavior (man I'm conflicted about this) in your routes table, then don't do any changes in that routes.js, instead add your route type to the list in here:

config/settings.js

Find the const route_type_options = line.

EarlThorfinn commented 5 years ago

Many thanks @answerquest ! I've emailed you re feedback.