{
    "tags": {
        "include": [
            "shop",
            "amenity",
            "opening_hours"
        ]
    },
    "areas": {
        "area_tags": ["leisure"],
        "linear_tags": ["highway"],
    },
    "generalized_tables": {
        "waterareas_gen1": {
            "source": "waterareas",
            "sql_filter": "ST_Area(geometry)>50000.000000",
            "tolerance": 50.0
        },
        "waterareas_gen0": {
            "source": "waterareas_gen1",
            "sql_filter": "ST_Area(geometry)>500000.000000",
            "tolerance": 200.0
        },
        "roads_gen0": {
            "source": "roads_gen1",
            "sql_filter": null,
            "tolerance": 200.0
        },
        "roads_gen1": {
            "source": "roads",
            "sql_filter": "type IN ('motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', 'primary_link', 'secondary', 'secondary_link', 'tertiary', 'tertiary_link') OR class IN('railway')",
            "tolerance": 50.0
        },
        "waterways_gen0": {
            "source": "waterways_gen1",
            "sql_filter": null,
            "tolerance": 200
        },
        "waterways_gen1": {
            "source": "waterways",
            "sql_filter": null,
            "tolerance": 50.0
        },
        "landusages_gen1": {
            "source": "landusages",
            "sql_filter": "ST_Area(geometry)>50000.000000",
            "tolerance": 50.0
        },
        "landusages_gen0": {
            "source": "landusages_gen1",
            "sql_filter": "ST_Area(geometry)>500000.000000",
            "tolerance": 200.0
        }
    },
    "tables": {
        "landusages": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "validated_geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "webmerc_area",
                    "name": "area",
                    "key": null
                },
                {
                    "args": {
                        "values": [
                            "park",
                            "forest",
                            "residential",
                            "retail",
                            "commercial",
                            "industrial",
                            "railway",
                            "cemetery",
                            "grass",
                            "farmyard",
                            "farm",
                            "farmland",
                            "orchard",
                            "vineyard",
                            "wood",
                            "meadow",
                            "village_green",
                            "recreation_ground",
                            "allotments",
                            "quarry"
                        ]
                    },
                    "type": "enumerate",
                    "name": "enum",
                    "key": "enum_test"
                }
            ],
            "type": "polygon",
            "mapping": {
                "amenity": [
                    "university",
                    "school",
                    "college",
                    "library",
                    "fuel",
                    "parking",
                    "cinema",
                    "theatre",
                    "place_of_worship",
                    "hospital"
                ],
                "barrier": [
                    "hedge"
                ],
                "leisure": [
                    "park",
                    "garden",
                    "playground",
                    "golf_course",
                    "sports_centre",
                    "pitch",
                    "stadium",
                    "common",
                    "nature_reserve",
                    "track"
                ],
                "tourism": [
                    "zoo"
                ],
                "natural": [
                    "wood",
                    "land",
                    "scrub",
                    "wetland",
                    "heath"
                ],
                "man_made": [
                    "pier"
                ],
                "aeroway": [
                    "runway",
                    "taxiway"
                ],
                "place": [
                    "island"
                ],
                "military": [
                    "barracks"
                ],
                "landuse": [
                    "park",
                    "forest",
                    "residential",
                    "retail",
                    "commercial",
                    "industrial",
                    "railway",
                    "cemetery",
                    "grass",
                    "farmyard",
                    "farm",
                    "farmland",
                    "orchard",
                    "vineyard",
                    "wood",
                    "meadow",
                    "village_green",
                    "recreation_ground",
                    "allotments",
                    "quarry"
                ],
                "highway": [
                    "pedestrian",
                    "footway"
                ]
            }
        },
        "buildings": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "hstore_tags",
                    "name": "tags",
                    "args": {
                        "include": ["amenity", "shop", "opening_hours"]
                    }
                }
            ],
            "type": "polygon",
            "mapping": {
                "building": [
                    "__any__"
                ]
            }
        },
        "places": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "args": {
                        "values": [
                            "locality",
                            "suburb",
                            "hamlet",
                            "village",
                            "town",
                            "city",
                            "county",
                            "region",
                            "state",
                            "country"
                        ]
                    },
                    "type": "enumerate",
                    "name": "z_order"
                },
                {
                    "type": "integer",
                    "name": "population",
                    "key": "population"
                }
            ],
            "type": "point",
            "mapping": {
                "place": [
                    "country",
                    "state",
                    "region",
                    "county",
                    "city",
                    "town",
                    "village",
                    "hamlet",
                    "suburb",
                    "locality"
                ]
            }
        },
        "transport_areas": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                }
            ],
            "type": "polygon",
            "mapping": {
                "railway": [
                    "station",
                    "platform"
                ],
                "aeroway": [
                    "aerodrome",
                    "terminal",
                    "helipad",
                    "apron"
                ]
            }
        },
        "admin": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "integer",
                    "name": "admin_level",
                    "key": "admin_level"
                }
            ],
            "type": "polygon",
            "mapping": {
                "boundary": [
                    "administrative"
                ]
            }
        },
        "aeroways": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                }
            ],
            "type": "linestring",
            "mapping": {
                "aeroway": [
                    "runway",
                    "taxiway"
                ]
            }
        },
        "waterways": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                }
            ],
            "type": "linestring",
            "mapping": {
                "waterway": [
                    "stream",
                    "river",
                    "canal",
                    "drain",
                    "ditch"
                ],
                "barrier": [
                    "ditch"
                ]
            }
        },
        "barrierways": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                }
            ],
            "type": "linestring",
            "mapping": {
                "barrier": [
                    "city_wall",
                    "fence",
                    "hedge",
                    "retaining_wall",
                    "wall",
                    "bollard",
                    "gate",
                    "spikes",
                    "lift_gate",
                    "kissing_gate",
                    "embankment",
                    "yes",
                    "wire_fence"
                ]
            }
        },
        "transport_points": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "ref",
                    "key": "ref"
                }
            ],
            "type": "point",
            "mapping": {
                "railway": [
                    "station",
                    "halt",
                    "tram_stop",
                    "crossing",
                    "level_crossing",
                    "subway_entrance"
                ],
                "aeroway": [
                    "aerodrome",
                    "terminal",
                    "helipad",
                    "gate"
                ],
                "highway": [
                    "motorway_junction",
                    "turning_circle",
                    "bus_stop"
                ]
            }
        },
        "amenities": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                }
            ],
            "type": "point",
            "mapping": {
                "amenity": [
                    "university",
                    "school",
                    "library",
                    "fuel",
                    "hospital",
                    "fire_station",
                    "police",
                    "townhall"
                ]
            }
        },
        "barrierpoints": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                }
            ],
            "type": "point",
            "mapping": {
                "barrier": [
                    "block",
                    "bollard",
                    "cattle_grid",
                    "chain",
                    "cycle_barrier",
                    "entrance",
                    "horse_stile",
                    "gate",
                    "spikes",
                    "lift_gate",
                    "kissing_gate",
                    "fence",
                    "yes",
                    "wire_fence",
                    "toll_booth",
                    "stile"
                ]
            }
        },
        "housenumbers_interpolated": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "addr:street",
                    "key": "addr:street"
                },
                {
                    "type": "string",
                    "name": "addr:postcode",
                    "key": "addr:postcode"
                },
                {
                    "type": "string",
                    "name": "addr:city",
                    "key": "addr:city"
                },
                {
                    "type": "string",
                    "name": "addr:inclusion",
                    "key": "addr:inclusion"
                }
            ],
            "type": "linestring",
            "mapping": {
                "addr:interpolation": [
                    "__any__"
                ]
            }
        },
        "roads": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "string",
                    "name": "name:de",
                    "key": "name:de"
                },
                {
                    "type": "string",
                    "#": " check for different name/keys",
                    "name": "name_en",
                    "key": "name:en"
                },
                {
                    "type": "boolint",
                    "name": "tunnel",
                    "key": "tunnel"
                },
                {
                    "type": "boolint",
                    "name": "bridge",
                    "key": "bridge"
                },
                {
                    "type": "direction",
                    "name": "oneway",
                    "key": "oneway"
                },
                {
                    "type": "string",
                    "name": "ref",
                    "key": "ref"
                },
                {
                    "type": "wayzorder",
                    "name": "z_order",
                    "key": "layer"
                },
                {
                    "type": "string",
                    "name": "access",
                    "key": "access"
                },
                {
                    "type": "string",
                    "name": "service",
                    "key": "service"
                },
                {
                    "type": "mapping_key",
                    "name": "class",
                    "key": null
                }
            ],
            "type": "linestring",
            "mappings": {
                "railway": {
                    "mapping": {
                        "railway": [
                            "rail",
                            "tram",
                            "light_rail",
                            "subway",
                            "narrow_gauge",
                            "preserved",
                            "funicular",
                            "monorail",
                            "disused"
                        ]
                    }
                },
                "roads": {
                    "mapping": {
                        "highway": [
                            "motorway",
                            "motorway_link",
                            "trunk",
                            "trunk_link",
                            "primary",
                            "primary_link",
                            "secondary",
                            "secondary_link",
                            "tertiary",
                            "tertiary_link",
                            "road",
                            "path",
                            "track",
                            "service",
                            "footway",
                            "bridleway",
                            "cycleway",
                            "steps",
                            "pedestrian",
                            "living_street",
                            "unclassified",
                            "residential",
                            "raceway"
                        ],
                        "man_made": [
                            "pier",
                            "groyne"
                        ],
                        "leisure": [
                            "track"
                        ]
                    }
                }
            }
        },
        "housenumbers": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "addr:street",
                    "key": "addr:street"
                },
                {
                    "type": "string",
                    "name": "addr:postcode",
                    "key": "addr:postcode"
                },
                {
                    "type": "string",
                    "name": "addr:city",
                    "key": "addr:city"
                }
            ],
            "type": "point",
            "mapping": {
                "addr:housenumber": [
                    "__any__"
                ]
            }
        },
        "waterareas": {
            "fields": [
                {
                    "type": "id",
                    "name": "osm_id",
                    "key": null
                },
                {
                    "type": "validated_geometry",
                    "name": "geometry",
                    "key": null
                },
                {
                    "type": "string",
                    "name": "name",
                    "key": "name"
                },
                {
                    "type": "mapping_value",
                    "name": "type",
                    "key": null
                },
                {
                    "type": "webmerc_area",
                    "name": "area",
                    "key": null
                }
            ],
            "type": "polygon",
            "mapping": {
                "waterway": [
                    "riverbank"
                ],
                "landuse": [
                    "basin",
                    "reservoir"
                ],
                "natural": [
                    "water"
                ],
                "amenity": [
                    "swimming_pool"
                ],
                "leisure": [
                    "swimming_pool"
                ]
            }
        }
    }
}
