adds ATM to POI layer (#1375)

This PR adds ATM to POI layer.
If ATM isn't provided with a name tag we'll try to use operator or network instead.
This commit is contained in:
ttomasz
2022-04-25 10:29:08 +02:00
committed by GitHub
parent 2d0b7159d0
commit ca9e8f4e52
8 changed files with 76 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ def_poi_mapping_aerialway: &poi_mapping_aerialway
# amenity values , see http://taginfo.openstreetmap.org/keys/amenity#values
def_poi_mapping_amenity: &poi_mapping_amenity
- arts_centre
- atm
- bank
- bar
- bbq
@@ -367,6 +368,12 @@ def_poi_fields: &poi_fields
- name: sport
key: sport
type: string
- name: operator
key: operator
type: string
- name: network
key: network
type: string
def_poi_mapping: &poi_mapping
aerialway: *poi_mapping_aerialway

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -94,6 +94,8 @@ layer:
subclass: ['swimming_area', 'swimming']
castle:
subclass: ['castle', 'ruins']
atm:
subclass: ['atm']
subclass:
description: |
Original value of either the

View File

@@ -15,6 +15,18 @@ BEGIN
WHERE funicular = 'yes'
AND subclass = 'station';
-- ATM without name
-- use either operator or network
-- (using name for ATM is discouraged, see osm wiki)
UPDATE osm_poi_point
SET (name, tags) = (
COALESCE(tags -> 'operator', tags -> 'network'),
tags || hstore('name', COALESCE(tags -> 'operator', tags -> 'network'))
)
WHERE subclass = 'atm'
AND name = ''
AND COALESCE(tags -> 'operator', tags -> 'network') IS NOT NULL;
UPDATE osm_poi_point
SET tags = update_tags(tags, geometry)
WHERE COALESCE(tags->'name:latin', tags->'name:nonlatin', tags->'name_int') IS NULL