def equivalent(tag):
    """Simplifies a bunch of tags to nearly-equivalent_way ones"""
    equivalent_way = {
        "motorway_link": "motorway",
        "trunk_link": "trunk",
        "primary_link": "primary",
        "secondary_link": "secondary",
        "tertiary_link": "tertiary",
        "minor": "unclassified",
        "pedestrian": "footway",
        "platform": "footway",
    }
    return equivalent_way.get(tag, tag)