def _test_if_road(way):

    """Tests if a raw way is a road to consider"""

    tags = way.tags
    return 'highway' in tags and tags['highway'] not in [
        'footway',
        'service',
        'unclassified',
        'steps',
        'cycleway',
        'path',
        'track',
        'pedestrian',
        'proposed',
        ]