UrbanAnalyst / gtfsrouter

Routing and analysis engine for GTFS (General Transit Feed Specification) data
https://urbananalyst.github.io/gtfsrouter/
82 stars 17 forks source link

grep_fixed is missing when calling gtfs_route_headway #94

Closed zamirD123 closed 1 year ago

zamirD123 commented 1 year ago

Hi @mpadge and thank you for this package

When I'm reading gtfs_route_headway() i'm getting the following error:

Error in station_name_to_ids(i, gtfs, from_to_are_ids, grep_fixed) :    argument "grep_fixed" is missing, with no default

I think that this as the result of this call to 'station_name_to_ids()' not containing 'grep_fixed'. Should be an easy fix...

mpadge commented 1 year ago

Thanks @zamirD123, you were absolutely correct there. The above commit exposes both the from_to_are_ids and grep_fixed parameters in the gtfs_route_headway() function, and also adds default values to the station_names_to_ids() function.