-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Opening Hours Parse error #1154
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
Comments
Actually, the use of <additional_rule_separator>, which is not supported by OSMand, is not recommended for this value. Rewrite as "Mo-Th 09:00-21:00; Fr-Sa 09:00-17:00; Su off". That said, I would also like to see issue #473 fixed. |
I don't expect any time soon to use javascript library especially we used this function in a critical way for search. |
Wrong. The value "Tu-Th 07:00-2:00, Fr 17:00-4:00, Sa 18:00-05:00; Su,Mo off" throws an exception: For "Mo-Th 09:00-03:00, Fr-Sa 09:00-04:00; Su off", it does not throw an exception but is evaluated wrong. See #1192. I intend to bundle the javascript library into a Java library (.jar) in the future. Would you consider using it then? |
…aluated correctly. Related to #1154.
Added test for "Mo-Th 09:00-03:00, Fr-Sa 09:00-04:00; Su off". Not evaluated correctly. Related to #1154.
Made a note on OSM Wiki for future editors/users. https://wiki.openstreetmap.org/wiki/Key:opening_hours#OsmAnd |
To avoid sort of confusion. |
It is not incorrect, but not intended/recommended/needed. The preferred rule separator should always be So, in this case, there is no reason to use |
POI Seems to have correct format for opening_hours, however, OSMAND is not parsing the tag as expected. Showing the place as closed when it is actually open.
Might have something to do with use of commas/semi-colon.
Mo-Th 09:00-21:00, Fr-Sa 09:00-17:00, Su off
Screenshot
POI Example
Validation Result
Related Issue
The text was updated successfully, but these errors were encountered: