# -*- coding: utf-8 -*-
__rulesetname__ = "iceland"
__version__ = "0.1"
__author__ = "Ævar Arnfjörð Bjarmason <avarab@gmail.com>"

import re

def created_by():
    return "change_tags.py: %s %s" % (__rulesetname__, __version__)

def test(tags, type):
    """For grid streets with names such as "South 400 West St", remove
       the "St" or "Street" suffix because it is not used."""

    if type == 'relation' and "type" in tags and tags['type'] == 'route' and 'route' in tags and tags['route'] == 'road' and 'name' in tags and tags['name'] == 'Vatnsnesvegur':
        tags['name'] = 'Fleh'
        return True;

    return False

# vim: ts=4 sw=4 et