Skip to content

Commit

Permalink
Write feedIds as separate column
Browse files Browse the repository at this point in the history
  • Loading branch information
ansoncfit committed Jan 23, 2024
1 parent 4a5b721 commit 990a542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class PathResult {
"routes",
"boardStops",
"alightStops",
"feedIds",
"rideTimes",
"accessTime",
"egressTime",
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/conveyal/r5/transit/path/RouteSequence.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public String[] detailsWithGtfsIds(TransitLayer transitLayer){
StringJoiner routeIds = new StringJoiner("|");
StringJoiner boardStopIds = new StringJoiner("|");
StringJoiner alightStopIds = new StringJoiner("|");
StringJoiner feedIds = new StringJoiner("|");
StringJoiner rideTimes = new StringJoiner("|");
for (int i = 0; i < routes.size(); i++) {
routeIds.add(transitLayer.routeString(routes.get(i), false));
boardStopIds.add(transitLayer.stopString(stopSequence.boardStops.get(i), false));
alightStopIds.add(transitLayer.stopString(stopSequence.alightStops.get(i), false));
alightStopIds.add(":");
alightStopIds.add(transitLayer.feedFromStop(stopSequence.boardStops.get(i)));
feedIds.add(transitLayer.feedFromStop(stopSequence.boardStops.get(i)));
rideTimes.add(String.format("%.1f", stopSequence.rideTimesSeconds.get(i) / 60f));
}
String accessTime = stopSequence.access == null ? null : String.format("%.1f", stopSequence.access.time / 60f);
Expand Down

0 comments on commit 990a542

Please sign in to comment.