Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underscores stripped out of feed IDs #2405

Closed
abyrd opened this issue Feb 24, 2017 · 5 comments
Closed

Underscores stripped out of feed IDs #2405

abyrd opened this issue Feb 24, 2017 · 5 comments
Assignees
Labels
bug Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.

Comments

@abyrd
Copy link
Member

abyrd commented Feb 24, 2017

Giuseppe on the mailing list reports:
"I noted that if the feed id is given by the concatenation by underscore of two words, the program drops the underscore, CHINA_RAIL becomes CHINARAIL."

@abyrd abyrd added the bug label Feb 24, 2017
@abyrd abyrd self-assigned this Feb 24, 2017
@johannilsson
Copy link
Contributor

This was made as a workaround for OBA that split ids on underscores, OTP splits on colon which is also stripped from the id.

This is done here, https://github.com/opentripplanner/OpenTripPlanner/blob/master/src/main/java/org/opentripplanner/graph_builder/module/GtfsFeedId.java#L99

@abyrd
Copy link
Member Author

abyrd commented Feb 24, 2017

Thanks @johannilsson, I see this was added in b5ae935. I don't fully understand though why OTP needs to clean IDs to match OBA conventions. Can you give some more context?

@johannilsson
Copy link
Contributor

AgencyAndId.convertFromString is used in RoutingResource, this assumes the separator is an underscore. This seems fairly easy to refactor though, I can't remember if there was other parts that required this change as well though. Can do a tests on our builds without replacing the underscore to see how it works.

@abyrd
Copy link
Member Author

abyrd commented Mar 14, 2017

Oh I see, it's because we're using OBA as a library and it obeys this convention.

@github-actions
Copy link

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days

@github-actions github-actions bot added the Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days. label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Stale This issue is stale, no activity for 90 days. Remove stale label or comment within 30 days.
Projects
None yet
Development

No branches or pull requests

2 participants