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

Route inspector does not recognize entry_only or exit_only stops #23

Open
eternaltyro opened this issue Jul 18, 2022 · 1 comment
Open

Comments

@eternaltyro
Copy link

PTv2 spec specifies that one should tag stop_entry_only or stop_exit_only for first and last stops respectively. But OSMI does not recognize these roles in route relations .

OSMI gives the error No stop or platform as first member = true if first stop role is stop_entry_only or platform_entry_only

Example rel_id=11599082

@eternaltyro
Copy link
Author

eternaltyro commented Jul 18, 2022

Actually, OSMI does parse entry/exit only stops :

bool PTv2Checker::is_stop(const char* role) {
return !strcmp(role, "stop") || !strcmp(role, "stop_entry_only") || !strcmp(role, "stop_exit_only");
}
bool PTv2Checker::is_platform(const char* role) {
return !strcmp(role, "platform") || !strcmp(role, "platform_entry_only") || !strcmp(role, "platform_exit_only");
}

I might be wrong. Checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant