Commit d2db3301 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

Refactored csv and adopted changed key

parent af39dccf
......@@ -14,5 +14,5 @@ In the first two CSV files, the columns are the following:
- `key`: OpenStreetMap key.
- `value`: value of the key (together, `key=value` are a `tag`).
- `taginfo_description`: description of the tag according to [taginfo](https://taginfo.openstreetmap.org/).
- `GEM_taxonomy_occupancy`: the occupancy string according to the GEM Taxonomy. If more than one value is possible, they are separated by "|".
- `GEM_occupancy`: the occupancy string according to the GEM Taxonomy. If more than one value is possible, they are separated by "|".
- `comments`: comments associated with the established mapping.
key,value,taginfo_description,GEM_taxonomy_occupancy,comments
key,value,taginfo_description,GEM_occupancy,comments
aerialway,station,"A station where passengers and/or goods can enter and/or leave the aerialway (forms of transport that use wires, including cable-cars, chair-lifts and drag-lifts)",COM,COM contains other kinds of transport stations but not one specific for aerialways
aeroway,hangar,A large airport building with extensive floor areas for housing aircraft or spacecraft,COM10,Unclear if hangar is treated as standard part of an airport or not
aeroway,terminal,An airport passenger building,COM10,
......
key,value,taginfo_description,GEM_taxonomy_occupancy,comments
key,value,taginfo_description,GEM_occupancy,comments
amenity,university,"An educational institution designed for instruction, examination, or both, of students in many branches of advanced learning.",EDU3,
amenity,school,A primary or secondary school (pupils typically aged 6 to 18).,EDU2,
amenity,college,"A place for further education, a post-secondary education institution which is not a University",EDU3,
......
......@@ -62,7 +62,7 @@ class OccupancyMapper:
for key, value in osm_tag.items():
occupancy = self.mapping.get(key, {}).get(value, None)
if occupancy is not None:
occupancies.append(occupancy["GEM_taxonomy_occupancy"])
occupancies.append(occupancy["GEM_occupancy"])
return occupancies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment