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

Add amenity=* POIs from OpenStreetMap Carto #1458

Merged
merged 7 commits into from
Feb 5, 2018

Conversation

pnorman
Copy link
Collaborator

@pnorman pnorman commented Dec 16, 2017

  • Update tests
  • Update data migrations
  • Update docs

Related to #1425.

I tried to pick zoom levels and places within the file similar to similar existing features (e.g. nightclubs like bars)

@pnorman pnorman changed the title 1425 amenity poi Add amenity=* POIs from OpenStreetMap Carto Dec 18, 2017
@@ -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`):
Copy link
Member

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?

Copy link
Member

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.)

Copy link
Member

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.

Copy link
Member

@nvkelso nvkelso left a 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.

@nvkelso nvkelso merged commit da0ac59 into tilezen:master Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants