use_single_id_space: true
generalized_tables:
  landuse_polygon_gen0:
    source: landuse_polygon_gen1
    sql_filter: area>500000.000000
    tolerance: 200.0
  landuse_polygon_gen1:
    source: landuse_polygon
    sql_filter: area>50000.000000
    tolerance: 50.0
  water_polygon_gen1:
    source: water_polygon
    sql_filter: area>40000.000000
    tolerance: 30.0
  building_polygon_gen0:
    source: building_polygon
    sql_filter: ST_Area(geometry)>1700.000000
    tolerance: 0.0
tables:
  admin_linestring:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: admin_level
      name: admin_level
      type: integer
    - name: maritime
      type: boolint
      key: maritime
    - name: area
      type: pseudoarea
    filters:
      exclude_tags:
      - [ "admin_level", "__nil__" ]
      - [ "admin_level", "3" ]
      - [ "admin_level", "5" ]
      - [ "admin_level", "6" ]
      - [ "admin_level", "7" ]
      - [ "admin_level", "8" ]
      - [ "admin_level", "9" ]
      - [ "admin_level", "10" ]
      - [ "natural", "coastline" ]
    mapping:
      boundary:
      - administrative
      - maritime
    type: linestring
  aero_linestring:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    mapping:
      aeroway:
      - runway
      - taxiway
      - apron
      - helipad
    type: linestring
  aero_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    mapping:
      aeroway:
      - runway
      - taxiway
      - apron
      - helipad
    type: polygon
  airport_point:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: iata
      key: iata
      type: string
    - name: ref
      key: ref
      type: string
    - name: icao
      key: icao
      type: string
    - name: faa
      key: faa
      type: string
    - name: aerodrome
      key: aerodrome
      type: string
    - name: type
      key: type
      type: string
    - name: kind
      type: mapping_value
    mapping:
      aeroway:
      - aerodrome
      - heliport
    type: point
  airport_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: iata
      key: iata
      type: string
    - name: ref
      key: ref
      type: string
    - name: icao
      key: icao
      type: string
    - name: faa
      key: faa
      type: string
    - name: aerodrome
      key: aerodrome
      type: string
    - name: type
      key: type
      type: string
    - name: kind
      type: mapping_value
    - name: area
      type: pseudoarea
    mapping:
      aeroway:
      - aerodrome
      - heliport
    type: polygon
  barrier_linestring:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    mapping:
      barrier:
      - city_wall
      - fence
      - hedge
      - hedge_bank
      - retaining_wall
      - wall
      - bollard
      - gate
      - spikes
      - lift_gate
      - kissing_gate
      - 'yes'
      - wire_fence
      - stile
      - entrance
      - cable_barrier
      - jersey_barrier
      - rope
      - guard_rail
      natural:
      - cliff
      - earth_bank
      man_made:
      - pier
      - breakwater
      - embankment
      - groyne
    type: linestring
  barrier_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    mapping:
      barrier:
      - city_wall
      - fence
      - hedge
      - hedge_bank
      - retaining_wall
      - wall
      - bollard
      - gate
      - spikes
      - lift_gate
      - kissing_gate
      - 'yes'
      - wire_fence
      - stile
      - entrance
      - cable_barrier
      - jersey_barrier
      - rope
      - guard_rail
      natural:
      - cliff
      - earth_bank
      man_made:
      - pier
      - breakwater
      - embankment
      - groyne
    type: polygon
  building_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: underground
      key: building:levels:underground
      type: integer
    - name: timestamp
      type: pbf_timestamp
    mapping:
      building:
      - __any__
    type: polygon
  housenumber_point:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: house_num
      type: mapping_value
    mapping:
      addr:housenumber:
      - __any__
    type: point
  housenumber_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: house_num
      type: mapping_value
    mapping:
      addr:housenumber:
      - __any__
    type: polygon
  landuse_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: validated_geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    - name: area
      type: pseudoarea
    mapping:
      landuse:
      - allotments
      - farm
      - farmland
      - farmyard
      - orchard
      - greenhouse_horticulture
      - plant_nursery
      - vineyard
      - grass
      - grassland
      - meadow
      - industrial
      - park
      - village_green
      - recreation_ground
      - forest
      - cemetery
      - beach
      - quarry
      - residential
      - commercial
      - retail
      - military
      - railway
      - greenfield
      - landfill
      - salt_pond
      - winter_sports
      leisure:
      - park
      - playground
      - dog_park
      - nature_reserve
      - golf_course
      - common
      - garden
      - recreation_ground
      - sports_centre
      - pitch
      - track
      natural:
      - glacier
      - sand
      - wood
      - scrub
      - wetland
      - mud
      - beach
      - rock
      - bare_rock
      - scree
      - grassland
      - heath
      - fell
      wetland:
      - marsh
      - swamp
      - tidalflat
      - bog
      amenity:
      - hospital
      - school
      - college
      - university
      cemetery:
      - __any__
      boundary:
      - national_park
      - protected_area
      - aboriginal_lands
      tourism:
      - zoo
      - camp_site
    type: polygon
  place_point:
    type: geometry
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: type
      type: mapping_value
    - key: population
      name: population
      type: integer
    - key: capital
      name: capital
      type: integer
    - key: capital
      name: is_capital
      type: bool
    - key: admin_level
      name: admin_level
      type: integer
    - key: scalerank
      name: scalerank
      type: integer
    filters:
      exclude_tags:
      - [ "name", "__nil__" ]
    type_mappings:
      points:
        place:
        - city
        - town
        - village
        - hamlet
        - suburb
        - neighbourhood
        - isolated_dwelling
      polygons:
        place:
        - island
        - islet
        - archipelago
        landuse:
        - residential
        boundary:
        - aboriginal_lands
  motorway_junction_point:
    type: point
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    - key: ref
      name: ref
      type: string
    - name: name
      key: name
      type: string
    mapping:
      highway:
      - motorway_junction
    filters:
      exclude_tags:
      - [ "ref", "__nil__" ]
  road_geometry:
    type: geometry
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: type
      type: mapping_value
    - key: oneway
      name: oneway
      type: direction
    - key: ref
      name: ref
      type: string
    - key: layer
      name: layer
      type: integer
    - name: z_order
      type: wayzorder
    - key: tunnel
      name: is_tunnel
      type: bool
    - key: bridge
      name: is_bridge
      type: bool
    - key: ford
      name: is_ford
      type: bool
    - key: construction
      name: construction
      type: string
    - key: tracktype
      name: tracktype
      type: string
    - key: service
      name: service
      type: string
    - key: motor_vehicle
      name: access
      type: string
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    type_mappings:
      polygons:
          railway:
          - rail
          - light_rail
          - subway
          highway:
          - motorway
          - motorway_link
          - trunk
          - trunk_link
          - primary
          - primary_link
          - secondary
          - secondary_link
          - tertiary
          - tertiary_link
          - unclassified
          - residential
          - road
          - living_street
          - raceway
          - construction
          - track
          - service
          - path
          - cycleway
          - steps
          - bridleway
          - footway
          - pedestrian
          aerialway:
          - cable_car
          - gondola
          - mixed_lift
          - chair_lift
          - drag_lift
          - t-bar
          - j-bar
          - platter
          - rope_tow
          - zip_line
          - magic_carpet
          - canopy
          golf:
          - hole
          route:
          - ferry
          - piste
          - mtb
          - hiking
      linestrings:
          railway:
          - rail
          - light_rail
          - subway
          highway:
          - motorway
          - motorway_link
          - trunk
          - trunk_link
          - primary
          - primary_link
          - secondary
          - secondary_link
          - tertiary
          - tertiary_link
          - unclassified
          - residential
          - road
          - living_street
          - raceway
          - construction
          - track
          - service
          - path
          - cycleway
          - steps
          - bridleway
          - footway
          - corridor
          - crossing
          - pedestrian
          aerialway:
          - cable_car
          - gondola
          - mixed_lift
          - chair_lift
          - drag_lift
          - t-bar
          - j-bar
          - platter
          - rope_tow
          - zip_line
          - magic_carpet
          - canopy
          golf:
          - hole
          route:
          - ferry
          - piste
          - mtb
          - hiking
  rail_station_point:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: type
      type: mapping_value
    mapping:
      station:
      - subway
      - light_rail
      railway:
      - station
      - halt
      - tram_stop
      - subway_entrance
    type: point
  water_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: validated_geometry
    - name: timestamp
      type: pbf_timestamp
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: area
      type: pseudoarea
    mapping:
      natural:
      - water
      - bay
      waterway:
      - river
      - riverbank
      - stream
      - canal
      - drain
      - ditch
    type: polygon
  water_linestring:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: type
      type: mapping_value
    mapping:
      barrier:
      - ditch
      waterway:
      - stream
      - river
      - canal
      - drain
      - ditch
    type: linestring
  mountain_peak_point:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - key: ele
      name: elevation_m
      type: integer
    - key: name
      name: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - name: type
      type: mapping_value
    mapping:
      natural:
      - peak
      - volcano
    type: point
  poi_polygon:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: name
      key: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - key: ref
      name: ref
      type: string
    - name: type
      type: mapping_value
    - name: area
      type: pseudoarea
    mapping:
      amenity:
      - arts_centre
      - police
      - fire_station
      - post_box
      - post_office
      - telephone
      - library
      - townhall
      - courthouse
      - prison
      - place_of_worship
      - embassy
      - community_centre
      - nursing_home
      - university
      - school
      - kindergarten
      - college
      - public_building
      - pharmacy
      - hospital
      - doctors
      - dentist
      - veterinary
      - theatre
      - nightclub
      - cinema
      - restaurant
      - recycling
      - fast_food
      - cafe
      - pub
      - bar
      - food_court
      - biergarten
      - swimming_pool
      - shelter
      - grave_yard
      - bank
      - ferry_terminal
      - fuel
      - waste_basket
      - bicycle_rental
      - bbq
      - taxi
      - bus_station
      - marketplace
      - toilets
      leisure:
      - park
      - playground
      - dog_park
      - sports_centre
      - pitch
      - swimming_pool
      - swimming_area
      - water_park
      - golf_course
      - miniature_golf
      - marina
      - stadium
      - ice_rink
      - garden
      landuse:
      - cemetery
      - basin
      - reservoir
      - brownfield
      sport:
      - swimming
      - tennis
      - soccer
      - baseball
      - basketball
      - multi
      - golf
      - equestrian
      - athletics
      - volleyball
      - climbing
      - bowls
      - american_football
      - skateboard
      - shooting
      - skiing
      - boules
      - beachvolleyball
      - cricket
      - table_tennis
      - hockey
      - gymnastics
      - running
      - canoe
      - rugby_union
      - skating
      - scuba_diving
      - motor
      - horse_racing
      - handball
      - team_handball
      - karting
      - cycling
      - archery
      - motocross
      - pelota
      - rugby
      - gaelic_games
      - model_aerodrome
      - netball
      - rugby_league
      - free_flying
      - rowing
      - chess
      - australian_football
      - cricket_nets
      - racquet
      - bmx
      - sailing
      - ice_stock
      - badminton
      - paddle_tennis
      - dog_racing
      - fatsal
      - billiards
      - ice_hockey
      - yoga
      - disc_golf
      - orienteering
      - toboggan
      - horseshoes
      - paragliding
      - korfball
      - diving
      - rc_car
      - canadian_football
      - field_hockey
      - shooting_range
      - boxing
      - curling
      - surfing
      - water_ski
      - judo
      - croquet
      - paintball
      - climbing_adventure
      - long_jump
      - table_soccer
      tourism:
      - attraction
      - artwork
      - gallery
      - hotel
      - motel
      - bed_and_breakfast
      - guest_house
      - hostel
      - chalet
      - camp_site
      - alpine_hut
      - caravan_site
      - museum
      - viewpoint
      - zoo
      - theme_park
      - information
      - picnic_site
      shop:
      - accessories
      - alcohol
      - antiques
      - art
      - bag
      - bakery
      - beauty
      - bed
      - beverages
      - bicycle
      - books
      - boutique
      - butcher
      - camera
      - car
      - car_repair
      - carpet
      - charity
      - chemist
      - chocolate
      - clothes
      - coffee
      - computer
      - confectionery
      - convenience
      - copyshop
      - cosmetics
      - garden_centre
      - deli
      - delicatessen
      - department_store
      - doityourself
      - dry_cleaning
      - video
      - electronics
      - erotic
      - fabric
      - florist
      - furniture
      - video_games
      - general
      - gift
      - greengrocer
      - hairdresser
      - hardware
      - hearing_aids
      - hifi
      - ice_cream
      - interior_decoration
      - jewelry
      - kiosk
      - lamps
      - laundry
      - mall
      - massage
      - mobile_phone
      - motorcycle
      - music
      - musical_instrument
      - newsagent
      - optician
      - outdoor
      - perfumery
      - perfume
      - pet
      - photo
      - second_hand
      - shoes
      - sports
      - stationery
      - supermarket
      - tailor
      - tattoo
      - ticket
      - tobacco
      - toys
      - travel_agency
      - watches
      - weapons
      - wholesale
      - wine
      highway:
      - motorway_junction
      - turning_circle
      - bus_stop
      barrier:
      - sally_port
      - lift_gate
      - gate
      - bollard
      - stile
      - cycle_barrier
      - toll_booth
      - border_control
      historic:
      - monument
      waterway:
      - dock
      aerialway:
      - station
    type: polygon
  poi_point:
    fields:
    - name: id
      type: id
    - name: geometry
      type: geometry
    - name: timestamp
      type: pbf_timestamp
    - name: name
      key: name
      type: string
    - name: name_fr
      key: name:fr
      type: string
    - name: name_de
      key: name:de
      type: string
    - name: name_en
      key: name:en
      type: string
    - name: name_es
      key: name:es
      type: string
    - name: name_ru
      key: name:ru
      type: string
    - name: name_zh
      key: name:zh
      type: string
    - key: ref
      name: ref
      type: string
    - name: type
      type: mapping_value
    mapping:
      amenity:
      - arts_centre
      - police
      - fire_station
      - post_box
      - post_office
      - telephone
      - library
      - townhall
      - courthouse
      - prison
      - place_of_worship
      - embassy
      - community_centre
      - nursing_home
      - university
      - school
      - kindergarten
      - college
      - public_building
      - pharmacy
      - hospital
      - doctors
      - dentist
      - veterinary
      - theatre
      - nightclub
      - cinema
      - restaurant
      - recycling
      - fast_food
      - cafe
      - pub
      - bar
      - food_court
      - biergarten
      - swimming_pool
      - shelter
      - grave_yard
      - bank
      - ferry_terminal
      - fuel
      - waste_basket
      - bicycle_rental
      - bbq
      - taxi
      - bus_station
      - marketplace
      - toilets
      leisure:
      - park
      - playground
      - dog_park
      - sports_centre
      - pitch
      - swimming_pool
      - swimming_area
      - water_park
      - golf_course
      - miniature_golf
      - marina
      - stadium
      - ice_rink
      - garden
      landuse:
      - cemetery
      - basin
      - reservoir
      - brownfield
      sport:
      - swimming
      - tennis
      - soccer
      - baseball
      - basketball
      - multi
      - golf
      - equestrian
      - athletics
      - volleyball
      - climbing
      - bowls
      - american_football
      - skateboard
      - shooting
      - skiing
      - boules
      - beachvolleyball
      - cricket
      - table_tennis
      - hockey
      - gymnastics
      - running
      - canoe
      - rugby_union
      - skating
      - scuba_diving
      - motor
      - horse_racing
      - handball
      - team_handball
      - karting
      - cycling
      - archery
      - motocross
      - pelota
      - rugby
      - gaelic_games
      - model_aerodrome
      - netball
      - rugby_league
      - free_flying
      - rowing
      - chess
      - australian_football
      - cricket_nets
      - racquet
      - bmx
      - sailing
      - ice_stock
      - badminton
      - paddle_tennis
      - dog_racing
      - fatsal
      - billiards
      - ice_hockey
      - yoga
      - disc_golf
      - orienteering
      - toboggan
      - horseshoes
      - paragliding
      - korfball
      - diving
      - rc_car
      - canadian_football
      - field_hockey
      - shooting_range
      - boxing
      - curling
      - surfing
      - water_ski
      - judo
      - croquet
      - paintball
      - climbing_adventure
      - long_jump
      - table_soccer
      tourism:
      - attraction
      - artwork
      - gallery
      - hotel
      - motel
      - bed_and_breakfast
      - guest_house
      - hostel
      - chalet
      - camp_site
      - alpine_hut
      - caravan_site
      - museum
      - viewpoint
      - zoo
      - theme_park
      - information
      - picnic_site
      shop:
      - accessories
      - alcohol
      - antiques
      - art
      - bag
      - bakery
      - beauty
      - bed
      - beverages
      - bicycle
      - books
      - boutique
      - butcher
      - camera
      - car
      - car_repair
      - carpet
      - charity
      - chemist
      - chocolate
      - clothes
      - coffee
      - computer
      - confectionery
      - convenience
      - copyshop
      - cosmetics
      - garden_centre
      - deli
      - delicatessen
      - department_store
      - doityourself
      - dry_cleaning
      - video
      - electronics
      - erotic
      - fabric
      - florist
      - furniture
      - video_games
      - general
      - gift
      - greengrocer
      - hairdresser
      - hardware
      - hearing_aids
      - hifi
      - ice_cream
      - interior_decoration
      - jewelry
      - kiosk
      - lamps
      - laundry
      - mall
      - massage
      - mobile_phone
      - motorcycle
      - music
      - musical_instrument
      - newsagent
      - optician
      - outdoor
      - perfumery
      - perfume
      - pet
      - photo
      - second_hand
      - shoes
      - sports
      - stationery
      - supermarket
      - tailor
      - tattoo
      - ticket
      - tobacco
      - toys
      - travel_agency
      - watches
      - weapons
      - wholesale
      - wine
      highway:
      - motorway_junction
      - turning_circle
      - bus_stop
      barrier:
      - sally_port
      - lift_gate
      - gate
      - bollard
      - stile
      - cycle_barrier
      - toll_booth
      - border_control
      historic:
      - monument
      waterway:
      - dock
      aerialway:
      - station
    type: point
