Esempio n. 1
0
def test_get_collection_curvature_on_way(road_a, road_b):
    output = KmlOutput('km')
    # Set a different curvature for road_b: 300 instead of 226
    road_b['curvature'] = 300
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 824
Esempio n. 2
0
def test_get_collection_curvature_on_way(road_a, road_b):
    output = KmlOutput('km')
    # Set a different curvature for road_b: 300 instead of 226
    road_b['curvature'] = 300
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 824
Esempio n. 3
0
def test_get_collection_curvature(road_a, road_b):
    output = KmlOutput('km')
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 750
Esempio n. 4
0
def test_get_collection_curvature(road_a, road_b):
    output = KmlOutput('km')
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 750