Skip to content

Transit vehicle is not yet at last stop! #1231

Closed Answered by Lshanah
Lshanah asked this question in Q&A
Discussion options

You must be logged in to vote

Hi kainagel, thank you using the validator sped things up significantly isolating the issue.

I had built my transit stops using one shared facility ID per node, so both the outbound and inbound directions all pointed at “stop_H_2_0”, “stop_H_2_1”, etc. That meant that when I generated the inbound route, every TransitStopFacility object got its linkRefId overwritten to the inbound link. The stops were sitting on the last link of the inbound diredction and the outbound stops were lost.

I fixed it by creating two seperate facilities for each stop node: one for outbound, one for inbound. The key change was going from something like:

Id<TransitStopFacility> sf0 = Id.create("stop_"+fromId, Tran…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Lshanah
Comment options

Answer selected by paulheinr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants