Skip to content

Commit

Permalink
rm transfers from start stations; fixes #88
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 17, 2022
1 parent 2efeee4 commit daab5e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gtfsrouter
Title: Routing with GTFS (General Transit Feed Specification) Data
Version: 0.0.5.099
Version: 0.0.5.100
Authors@R: c(
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre")),
person("Marcin", "Stepniak", , "[email protected]", role = "aut",
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"codeRepository": "https://github.com/ATFutures/gtfs-router",
"issueTracker": "https://github.com/ATFutures/gtfs-router/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.0.5.099",
"version": "0.0.5.100",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
8 changes: 6 additions & 2 deletions src/traveltimes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ void iso::trace_forward_traveltimes (
if (departure_time [i] < start_time_min)
continue; // # nocov - these lines already removed in R fn.

const bool is_start_stn = iso::is_start_stn (start_stations_set,
departure_station [i]);
// connections can also arrive at one of the departure stations, and
// these are also flagged as start stations to prevent transfers being
// constructed from the arrival/start station.
const bool is_start_stn =
iso::is_start_stn (start_stations_set, departure_station [i]) ||
iso::is_start_stn (start_stations_set, arrival_station [i]);

if (is_start_stn && departure_time [i] > start_time_max)
continue;
Expand Down

0 comments on commit daab5e3

Please sign in to comment.