-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
opening_hours parser can't parse some "off" cases #1612
Comments
Isn't it a duplicate? |
I thought about #1575 but can't tell if it duplicates this issue. |
Interesting, looks like an Android-only bug, because it works on iOS. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@biodranik it’s reproducible on my iPad. Probably caused by |
You're right, this one reproduces on my iPhone too. That code was written by one of the mailru devs. Despite my strong resistance, he chose boost spirit parser. The current implementation takes a lot of time to compile, has bugs, and doesn't parse everything. We even disabled unit tests for it with a plan to come back and fix it when there will be enough time. |
If "off" day is the first item in
opening_hours
then it's not parsable by OM.Case good
E.g. https://www.openstreetmap.org/node/4318534651 →
Tu-Su 11:00-01:00; Mo off
Monday is snown as off day:
Case bad
With museum https://www.openstreetmap.org/node/6403156110 →
Mo off; Tu-Fr 10:00-19:00; Sa,Su 10:00-14:00
Opening hours are unparsed:
The text was updated successfully, but these errors were encountered: