beyondtracks / nsw-oeh-beachwatch-geojson

Developer friendly NSW OEH Beachwatch GeoJSON Feed
MIT License
1 stars 0 forks source link

parse patrolInfo #2

Open andrewharvey opened 6 years ago

andrewharvey commented 6 years ago

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 commented 6 years ago

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