Skip to content

Instantly share code, notes, and snippets.

@miccferr
Created January 15, 2018 20:15
Show Gist options
  • Save miccferr/ebe1f2360bcb7972af0511d831f837ca to your computer and use it in GitHub Desktop.
Save miccferr/ebe1f2360bcb7972af0511d831f837ca to your computer and use it in GitHub Desktop.
A tentative OSM hierarchical categorisation using OSM's wiki Map Features
{
"Aerialway": {
"aerialway": [
"cable_car",
"gondola",
"chair_lift",
"mixed_lift",
"drag_lift",
"t-bar",
"j-bar",
"platter",
"rope_tow",
"magic_carpet",
"zip_line",
"pylon",
"station",
"canopy",
"goods",
"user defined"
]
},
"Aeroway": {
"aeroway": [
"aerodrome",
"apron",
"gate",
"hangar",
"helipad",
"heliport",
"navigationaid",
"runway",
"spaceport",
"taxilane",
"taxiway",
"terminal",
"windsock"
]
},
"Amenity": {
"Sustenance": {
"amenity": [
"bar",
"bbq",
"biergarten",
"cafe",
"drinking_water",
"fast_food",
"food_court",
"ice_cream",
"pub",
"restaurant"
]
},
"Education": {
"amenity": [
"college",
"kindergarten",
"library",
"archive",
"public_bookcase",
"school",
"music_school",
"driving_school",
"language_school",
"university"
]
},
"Transportation": {
"amenity": [
"bicycle_parking",
"bicycle_repair_station",
"bicycle_rental",
"boat_rental",
"boat_sharing",
"bus_station",
"car_rental",
"car_sharing",
"car_wash",
"charging_station",
"ferry_terminal",
"fuel",
"grit_bin",
"motorcycle_parking",
"parking",
"parking_entrance",
"parking_space",
"taxi"
]
},
"Financial": {
"amenity": ["atm", "bank", "bureau_de_change"]
},
"Healthcare": {
"amenity": [
"baby_hatch",
"clinic",
"dentist",
"doctors",
"hospital",
"nursing_home",
"pharmacy",
"social_facility",
"veterinary"
],
"healthcare": ["blood_donation"]
},
"Entertainment, Arts & Culture": {
"amenity": [
"arts_centre",
"brothel",
"casino",
"cinema",
"community_centre",
"fountain",
"gambling",
"nightclub",
"planetarium",
"social_centre",
"stripclub",
"studio",
"swingerclub",
"theatre"
]
},
"Others": {
"amenity": [
"animal_boarding",
"animal_shelter",
"baking_oven",
"bench",
"clock",
"courthouse",
"coworking_space",
"crematorium",
"crypt",
"dive_centre",
"dojo",
"embassy",
"fire_station",
"firepit",
"game_feeding",
"grave_yard",
"gym",
"hunting_stand",
"internet_cafe",
"kneipp_water_cure",
"marketplace",
"photo_booth",
"place_of_worship",
"police",
"post_box",
"post_office",
"prison",
"public_bath",
"public_building",
"ranger_station",
"recycling",
"rescue_station",
"sanitary_dump_station",
"sauna",
"shelter",
"shower",
"table",
"telephone",
"toilets",
"townhall",
"vending_machine",
"waste_basket",
"waste_disposal",
"waste_transfer_station",
"watering_place",
"water_point",
"user defined"
]
}
},
"Barrier": {
"Linear barrier": {
"barrier": [
"cable_barrier",
"city_wall",
"ditch",
"fence",
"guard_rail",
"handrail",
"hedge",
"kerb",
"retaining_wall",
"tank_trap",
"wall"
]
},
"Access control on highways": {
"barrier": [
"block",
"bollard",
"border_control",
"bump_gate",
"bus_trap",
"cattle_grid",
"chain",
"cycle_barrier",
"debris",
"entrance",
"full-height_turnstile",
"gate",
"hampshire_gate",
"height_restrictor",
"horse_stile",
"jersey_barrier",
"kent_carriage_gap",
"kissing_gate",
"lift_gate",
"log",
"motorcycle_barrier",
"rope",
"sally_port",
"spikes",
"stile",
"sump_buster",
"swing_gate",
"toll_booth",
"turnstile",
"yes"
]
}
},
"Boundary": {
"boundary": [
"administrative",
"historic",
"maritime",
"national_park",
"political",
"postal_code",
"religious_administration",
"protected_area",
"user defined"
]
},
"Building": {
"Accommodation": {
"building": [
"apartments",
"farm",
"hotel",
"house",
"detached",
"residential",
"dormitory",
"terrace",
"houseboat",
"bungalow",
"static_caravan"
]
},
"Commercial": {
"building": ["commercial", "office", "industrial", "retail", "warehouse", "kiosk"]
},
"Civic/Amenity": {
"building": [
"bakehouse",
"cathedral",
"chapel",
"church",
"kindergarten",
"mosque",
"temple",
"synagogue",
"shrine",
"civic",
"hospital",
"school",
"stadium",
"train_station",
"transportation",
"university",
"grandstand",
"public"
]
},
"Other Buildings": {
"building": [
"barn",
"bridge",
"bunker",
"cabin",
"carport",
"conservatory",
"construction",
"cowshed",
"digester",
"farm_auxiliary",
"garage",
"garages",
"garbage_shed",
"greenhouse",
"hangar",
"hut",
"pavilion",
"parking",
"roof",
"shed",
"stable",
"sty",
"transformer_tower",
"service",
"ruins",
"yes",
"user defined"
]
}
},
"Craft": {
"craft": [
"agricultural_engines",
"bakery",
"basket_maker",
"beekeeper",
"blacksmith",
"boatbuilder",
"bookbinder",
"brewery",
"builder",
"carpenter",
"carpet_layer",
"caterer",
"chimney_sweeper",
"clockmaker",
"confectionery",
"distillery",
"dressmaker",
"electrician",
"engraver",
"floorer",
"gardener",
"glaziery",
"handicraft",
"hvac",
"insulation",
"jeweller",
"joiner",
"key_cutter",
"locksmith",
"metal_construction",
"optician",
"painter",
"parquet_layer",
"photographer",
"photographic_laboratory",
"piano_tuner",
"plasterer",
"plumber",
"pottery",
"rigger",
"roofer",
"saddler",
"sailmaker",
"sawmill",
"scaffolder",
"sculptor",
"shoemaker",
"stand_builder",
"stonemason",
"sun_protection",
"tailor",
"tiler",
"tinsmith",
"toolmaker",
"turner",
"upholsterer",
"watchmaker",
"window_construction",
"winery"
]
},
"Emergency": {
"Medical Rescue": {
"emergency": ["ambulance_station", "defibrillator", "landing_site"]
},
"Firefighters": {
"emergency": [
"fire_extinguisher",
"fire_flapper",
"fire_hose",
"fire_hydrant",
"water_tank",
"fire_water_pond",
"suction_point"
]
},
"Lifeguards": {
"emergency": [
"lifeguard_base",
"lifeguard_tower",
"lifeguard_platform",
"lifeguard_place",
"life_ring"
]
}
},
"Geological": {
"geological": ["moraine", "outcrop", "palaeontological_site"]
},
"Highway": {
"Roads": {
"highway": [
"motorway",
"trunk",
"primary",
"secondary",
"tertiary",
"unclassified",
"residential",
"service"
]
},
"Link roads": {
"highway": ["motorway_link", "trunk_link", "primary_link", "secondary_link", "tertiary_link"]
},
"Special road type": {
"highway": [
"living_street",
"pedestrian",
"track",
"bus_guideway",
"escape",
"raceway",
"road"
]
},
"Paths": {
"highway": ["footway", "bridleway", "steps", "path", "cycleway"],
"sidewalk": ["both / left / right / no"],
"busway": ["lane"],
"cycleway": [
"lane",
"opposite",
"opposite_lane",
"track",
"opposite_track",
"share_busway",
"opposite_share_busway",
"shared_lane"
]
},
"Lifecycle": { "highway": ["proposed", "construction"] },
"Other highway features": {
"highway": [
"bus_stop",
"crossing",
"elevator",
"emergency_access_point",
"give_way",
"mini_roundabout",
"motorway_junction",
"passing_place",
"rest_area",
"speed_camera",
"street_lamp",
"services",
"stop",
"traffic_signals",
"turning_circle",
"User Defined"
],
"emergency": ["phone"]
}
},
"Historic": {
"historic": [
"aircraft",
"aqueduct",
"archaeological_site",
"battlefield",
"boundary_stone",
"building",
"cannon",
"castle",
"church",
"city_gate",
"citywalls",
"farm",
"fort",
"gallows",
"highwater_mark",
"locomotive",
"manor",
"memorial",
"milestone",
"monastery",
"monument",
"optical_telegraph",
"pillory",
"railway_car",
"ruins",
"rune_stone",
"ship",
"tomb",
"tower",
"tree_shrine",
"wayside_cross",
"wayside_shrine",
"wreck",
"yes",
"user defined"
]
},
"Landuse": {
"landuse": [
"allotments",
"basin",
"brownfield",
"cemetery",
"commercial",
"conservation",
"construction",
"depot",
"farmland",
"farmyard",
"forest",
"garages",
"grass",
"greenfield",
"greenhouse_horticulture",
"industrial",
"landfill",
"meadow",
"military",
"orchard",
"pasture",
"peat_cutting",
"plant_nursery",
"port",
"quarry",
"railway",
"recreation_ground",
"reservoir",
"residential",
"retail",
"salt_pond",
"village_green",
"vineyard",
"user defined"
]
},
"Leisure": {
"leisure": [
"adult_gaming_centre",
"amusement_arcade",
"beach_resort",
"bandstand",
"bird_hide",
"common",
"dance",
"disc_golf_course",
"dog_park",
"escape_game",
"firepit",
"fishing",
"fitness_centre",
"fitness_station",
"garden",
"hackerspace",
"horse_riding",
"ice_rink",
"marina",
"miniature_golf",
"nature_reserve",
"park",
"picnic_table",
"pitch",
"playground",
"slipway",
"sports_centre",
"stadium",
"summer_camp",
"swimming_area",
"swimming_pool",
"track",
"water_park",
"wildlife_hide"
]
},
"Man_made": {
"man_made": [
"adit",
"beacon",
"breakwater",
"bridge",
"bunker_silo",
"campanile",
"chimney",
"communications_tower",
"crane",
"cross",
"cutline",
"clearcut",
"dovecote",
"drinking_fountain",
"dyke",
"embankment",
"flagpole",
"gasometer",
"groyne",
"guy",
"kiln",
"lighthouse",
"mast",
"mineshaft",
"monitoring_station",
"obelisk",
"observatory",
"offshore_platform",
"petroleum_well",
"pier",
"pipeline",
"pumping_station",
"reservoir_covered",
"silo",
"snow_fence",
"snow_net",
"storage_tank",
"street_cabinet",
"surveillance",
"survey_point",
"telescope",
"tower",
"wastewater_plant",
"watermill",
"water_tower",
"water_well",
"water_tap",
"water_works",
"wildlife_crossing",
"windmill",
"works",
"yes"
]
},
"Military": {
"military": [
"airfield",
"ammunition",
"bunker",
"barracks",
"checkpoint",
"danger_area",
"naval_base",
"nuclear_explosion_site",
"obstacle_course",
"office",
"range",
"training_area",
"trench",
"launchpad",
"user defined"
]
},
"Natural": {
"Vegetation or surface related": [
"wood",
"tree_row",
"tree",
"scrub",
"heath",
"moor",
"grassland",
"fell",
"bare_rock",
"scree",
"shingle",
"sand",
"mud"
],
"Water related": [
"water",
"wetland",
"glacier",
"bay",
"cape",
"beach",
"coastline",
"spring",
"hot_spring",
"geyser"
],
"Landform related": [
"peak",
"volcano",
"valley",
"ridge",
"arete",
"cliff",
"saddle",
"rock",
"stone",
"sinkhole",
"cave_entrance"
]
},
"Office": {
"office": [
"accountant",
"adoption_agency",
"advertising_agency",
"architect",
"association",
"charity",
"company",
"educational_institution",
"employment_agency",
"energy_supplier",
"estate_agent",
"forestry",
"foundation",
"government",
"guide",
"insurance",
"it",
"lawyer",
"logistics",
"moving_company",
"newspaper",
"ngo",
"notary",
"political_party",
"private_investigator",
"property_management",
"quango",
"religion",
"research",
"surveyor",
"tax",
"tax_advisor",
"telecommunication",
"therapist",
"travel_agent",
"water_utility",
"yes",
"real_estate_agent"
]
},
"Place": {
"Administratively declared places": {
"place": ["country", "state", "region", "province", "district", "county", "municipality"]
},
"Populated settlements, urban": {
"place": ["city", "borough", "suburb", "quarter", "neighbourhood", "city_block", "plot"]
},
"Populated settlements, urban and rural": {
"place": ["town", "village", "hamlet", "isolated_dwelling", "farm", "allotments"]
},
"Other places": {
"place": ["continent", "archipelago", "island", "islet", "square", "locality"]
}
},
"Power": {
"line": ["busbar", "bay"],
"power": [
"plant",
"cable",
"compensator",
"converter",
"generator",
"heliostat",
"insulator",
"line",
"minor_line",
"pole",
"portal",
"catenary_mast",
"substation",
"switch",
"terminal",
"tower",
"transformer",
"User Defined"
]
},
"Public Transport": {
"public_transport": ["stop_position", "platform", "station", "stop_area"]
},
"Railway": {
"Tracks": {
"railway": [
"abandoned",
"construction",
"disused",
"funicular",
"light_rail",
"miniature",
"monorail",
"narrow_gauge",
"preserved",
"rail",
"subway",
"tram"
]
},
"Stations and Stop": {
"railway": ["halt", "platform", "station", "subway_entrance", "tram_stop"],
"public_transport": ["stop_position", "platform", "station"]
},
"Other railways": {
"railway": [
"buffer_stop",
"derail",
"crossing",
"level_crossing",
"signal",
"switch",
"railway_crossing",
"turntable",
"roundhouse",
"traverser",
"wash",
"user defined"
],
"landuse": "railway"
}
},
"Route": {
"route": [
"bicycle",
"bus",
"canoe",
"detour",
"ferry",
"fitness_trail",
"hiking",
"horse",
"inline_skates",
"light_rail",
"mtb",
"nordic_walking",
"pipeline",
"piste",
"power",
"railway",
"road",
"running",
"ski",
"train",
"tram",
"User defined"
]
},
"Shop": {
"Food, beverages": {
"shop": [
"alcohol",
"bakery",
"beverages",
"brewing_supplies",
"butcher",
"cheese",
"chocolate",
"coffee",
"confectionery",
"convenience",
"deli",
"dairy",
"farm",
"greengrocer",
"frozen_food",
"ice_cream",
"organic",
"pasta",
"pastry",
"seafood",
"spices",
"tea",
"wine"
]
},
"General store, department store, mall": {
"shop": ["department_store", "general", "kiosk", "mall", "supermarket"]
},
"Clothing, shoes, accessories": {
"shop": [
"baby_goods",
"bag",
"boutique",
"clothes",
"fabric",
"fashion",
"jewelry",
"leather",
"sewing",
"shoes",
"tailor",
"watches"
]
},
"Discount store, charity": {
"shop": ["charity", "second_hand", "variety_store"]
},
"Health and beauty": {
"shop": [
"beauty",
"chemist",
"cosmetics",
"drugstore",
"erotic",
"hairdresser",
"hairdresser_supply",
"hearing_aids",
"herbalist",
"massage",
"medical_supply",
"nutrition_supplements",
"optician",
"perfumery",
"tattoo"
]
},
"Do-it-yourself, household, building materials, gardening": {
"shop": [
"agrarian",
"bathroom_furnishing",
"doityourself",
"electrical",
"energy",
"fireplace",
"florist",
"garden_centre",
"garden_furniture",
"gas",
"glaziery",
"hardware",
"houseware",
"locksmith",
"paint",
"security",
"trade"
]
},
"Furniture and interior": {
"shop": [
"antiques",
"bed",
"candles",
"carpet",
"curtain",
"doors",
"flooring",
"furniture",
"interior_decoration",
"kitchen",
"lamps",
"tiles",
"window_blind"
]
},
"Electronics": {
"shop": [
"computer",
"robot",
"electronics",
"hifi",
"mobile_phone",
"radiotechnics",
"vacuum_cleaner"
]
},
"Outdoors and sport, vehicles": {
"shop": [
"atv",
"bicycle",
"boat",
"car",
"car_repair",
"car_parts",
"fuel",
"fishing",
"free_flying",
"hunting",
"jetski",
"motorcycle",
"outdoor",
"scuba_diving",
"ski",
"snowmobile",
"sports",
"swimming_pool",
"tyres"
]
},
"Art, music, hobbies": {
"shop": [
"art",
"collector",
"craft",
"frame",
"games",
"model",
"music",
"musical_instrument",
"photo",
"camera",
"trophy",
"video",
"video_games"
]
},
"Stationery, gifts, books, newspapers": {
"shop": ["anime", "books", "gift", "lottery", "newsagent", "stationery", "ticket"]
},
"Others": {
"shop": [
"bookmaker",
"copyshop",
"dry_cleaning",
"e-cigarette",
"funeral_directors",
"laundry",
"money_lender",
"party",
"pawnbroker",
"pet",
"pyrotechnics",
"religion",
"storage_rental",
"tobacco",
"toys",
"travel_agency",
"vacant",
"weapons",
"user defined"
]
}
},
"Sport": {
"sport": [
"9pin",
"10pin",
"american_football",
"aikido",
"archery",
"athletics",
"australian_football",
"badminton",
"bandy",
"base",
"baseball",
"basketball",
"beachvolleyball",
"billiards",
"bmx",
"bobsleigh",
"boules",
"bowls",
"boxing",
"canadian_football",
"canoe",
"chess",
"cliff_diving",
"climbing",
"climbing_adventure",
"cockfighting",
"cricket",
"croquet",
"curling",
"cycling",
"darts",
"dog_racing",
"equestrian",
"fencing",
"field_hockey",
"free_flying",
"futsal",
"gaelic_games",
"golf",
"gymnastics",
"handball",
"hapkido",
"horseshoes",
"horse_racing",
"ice_hockey",
"ice_skating",
"ice_stock",
"judo",
"karate",
"karting",
"kitesurfing",
"korfball",
"lacrosse",
"model_aerodrome",
"motocross",
"motor",
"multi",
"netball",
"obstacle_course",
"orienteering",
"paddle_tennis",
"parachuting",
"paragliding",
"pelota",
"racquet",
"rc_car",
"roller_skating",
"rowing",
"rugby_league",
"rugby_union",
"running",
"sailing",
"scuba_diving",
"shooting",
"skateboard",
"soccer",
"sumo",
"surfing",
"swimming",
"table_tennis",
"table_soccer",
"taekwondo",
"tennis",
"toboggan",
"volleyball",
"water_polo",
"water_ski",
"weightlifting",
"wrestling",
"yoga"
]
},
"Tourism": {
"tourism": [
"alpine_hut",
"apartment",
"aquarium",
"artwork",
"attraction",
"camp_site",
"caravan_site",
"chalet",
"gallery",
"guest_house",
"hostel",
"hotel",
"information",
"motel",
"museum",
"picnic_site",
"theme_park",
"viewpoint",
"wilderness_hut",
"zoo",
"yes"
]
},
"Waterway": {
"Natural watercourses": {
"waterway": ["river", "riverbank", "stream", "wadi", "drystream"]
},
"Man-made waterways": {
"waterway": ["canal", "drain", "ditch", "fairway"]
},
"Facilities": {
"waterway": ["dock", "boatyard"]
},
"Barriers on waterways": {
"waterway": ["dam", "weir", "stream_end", "waterfall", "lock_gate"]
},
"Other features on waterways": {
"waterway": ["turning_point", "water_point", "fuel"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment