Ejemplo n.º 1
0
def destination_location_test():
    dist = 0.25

    rotchild12 = Location(32.06279, 34.77048)

    #we choose 0 as angle to cancel the angular distance
    dest = GeoService.get_destination_location(rotchild12, dist, 0)
    calc_dist = GeoService.get_distance(rotchild12, dest)
    assert int(dist * 1000) == int(calc_dist * 1000)