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

parse patrolInfo #2

Open
andrewharvey opened this issue Jan 8, 2018 · 1 comment
Open

parse patrolInfo #2

andrewharvey opened this issue Jan 8, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@andrewharvey
Copy link
Member

Parse patrolInfo in a way that makes it easy to determine if it is patrolled today.

jq '.features[].properties.patrolInfo' nsw-oeh-beachwatch.geojson | sort | uniq

  1. "Baths are open from September 2017 until end of April 2018."
  2. "Baths open from 30 September 2017 until end of March 2018."
  3. "Patrolled 7 days all year round."
  4. "Patrolled 7 days during Christmas holidays - 9 am to 5pm."
  5. "Patrolled 7 days from 16 December 2017 until 28 January 2018."
  6. "Patrolled 7 days from 16 September 2017 until 29 April 2018."
  7. "Patrolled 7 days from 18 September 2017 until June 2018."
  8. "Patrolled 7 days from 23 September 2017 to 29 April 2018."
  9. "Patrolled 7 days from 23 September 2017 until 29 April 2018."
  10. "Patrolled 7 days from 2 September 2017 until end of May 2018."
  11. "Patrolled 7 days year round."
  12. "Patrolled 7 days year round. During off season (May - Sept), patrolled between 7:30am - 3:30pm."
  13. "Patrolled 7 days year round. During off season (May - Sept), patrolled between 8am - 4pm."
  14. "Patrolled all year round."
  15. "Patrolled during Christmas, Easter and April school holidays."
  16. "Patrolled on weekends and public holidays between 23 September 2017 until 29 April 2018. Also patrolled 7 days during the Christmas school holidays."
  17. "Patrolled weekends and public holidays from 23 September 2017 until 29 April 2018. Patrolled 7 days during peak summer holidays."
  18. "Patrolled weekends and public holidays from 23 September 2017 until 29 April 2018. Patrolled 7 days during the months of December, January and February - and during spring and autumn school holidays."
  19. "Patrolled weekends and public holidays from 23 September 2017 until 29 April 2018. Patrolled Monday - Friday between 18 December 2017 until 26 January 2018."
  20. "Patrolled weekends and public holidays from 23 September 2017 until 29 April 2018. Patrolled Monday - Friday during Summer, April and Sept/Oct School Holidays."
  21. "Swimming area is not patrolled."
  22. "This beach is not patrolled. "
  23. "This beach is not patrolled."
  24. "This swimming site is not patrolled."
  25. "This swimming site is not patrolled."
@andrewharvey andrewharvey added the enhancement New feature or request label Jan 8, 2018
@andrewharvey
Copy link
Member Author

  • /not patrolled/i = off
  • "Patrolled 7 days all year round.", "Patrolled 7 days year round.", "Patrolled all year round." = open
  • /Patrolled 7 days from ? until ?/ = eg. Sep 23 - Apr 29

https://wiki.openstreetmap.org/wiki/Key:opening_hours#Summary_syntax

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

No branches or pull requests

1 participant