def create_route_long_name(relation, short_name):
    """Create a meaningful route name."""
    if relation.tags.get('from') and relation.tags.get('to'):
        return '{0}-to-{1}'.format(relation.tags.get('from'), relation.tags
            .get('to'))
    name = relation.tags.get('name') or relation.tags.get('alt_name'
        ) or 'OSM Route No. {}'.format(relation.id)
    if short_name and name.startswith(short_name):
        return name[len(short_name):]
    return name
