def location_label(start, end):
    """
    `start` and `end` are to locations that have a name property
    """
    if not start:
        return ''
    if end and end.name != start.name:
        return '{} – {}'.format(start.name, end.name)
    return start.name
