-
Notifications
You must be signed in to change notification settings - Fork 120
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
Add amenity=* POIs from OpenStreetMap Carto #1458
Conversation
This is part of tilezen#1425 and sets up the parts of code to place the other amenities in.
9df3c92
to
5cd4398
Compare
@@ -678,13 +678,13 @@ To resolve inconsistency in data tagging in OpenStreetMap we normalize several o | |||
* `operator`: Who actually runs the bike share station, eg: "NYC Bike Share". | |||
* `ref`: The reference of this rental station, if one is available. | |||
|
|||
#### POI properties (only on `kind:bicycle_parking`): | |||
#### POI properties (only on `kind:bicycle_parking` and `kind:motorcycle_parking`): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these properties apply to (car) parking as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, per: https://github.com/pnorman/vector-datasource/blob/5cd439892d50b0e8a70205f1d3f3597b4515199b/yaml/pois.yaml#L1349-L1377, please add to parking POIs YAML section:
access: {col: access}
operator: {col: operator}
capacity: {col: tags->capacity}
covered:
case:
- when:
covered: 'yes'
then: true
- when:
covered: 'no'
then: false
fee:
case:
- when:
fee: true
not:
fee: ['no', 'Free', 'free', '0', 'No', 'none']
then: true
# TODO tests expect this to be false and not omitted, is that what we want?
- else: false
maxstay: {col: tags->maxstay}
surveillance:
case:
- when:
surveillance: true
not:
surveillance: ['no', 'none']
then: true
(Which is the same as the others except omitting the cyclcehire id lines, so could be made into a global.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's follow-up in #1475.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change for the parking related POIs.
Related to #1425.
I tried to pick zoom levels and places within the file similar to similar existing features (e.g. nightclubs like bars)