if "type" in member and member["type"]=="way":
relation["members"].update({member["ref"]:member.get("role")})
// add way id to set of way ids found in relations
way_ids_in_relations.add(member["ref"])
if "tags" in element:
for tag in element["tags"]:
relation[tag] = element["tags"][tag]
relations[element["id"]] = relation
After Change
// delete any ways not tagged with footprint_type from the final dictionary
for untagged_way in untagged_ways:
try:
del footprints[untagged_way]
except KeyError:
log("untagged_way {} not found in footprints dict".format(untagged_way))
// Convert footprints dictionary to a GeoDataFrame