def _location_separation( location1, location2 ):
    """The separation between two locations"""
    if location1.position >= location2.end():
        return location1.position - location2.end()
    else:
        return location2.position - location1.end()