コード例 #1
0
ファイル: test_output.py プロジェクト: Fonsan/curvature
def test_get_collection_segments(road_a, road_b):
    output = KmlOutput('km')
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    segments = output.get_collection_segments(collection)
    assert len(segments) == 13
    assert segments[0]['start'][0] == 44.47486310000014
    assert segments[12]['start'][0] == 44.57721230000033
コード例 #2
0
ファイル: test_output.py プロジェクト: jaredlovell/curvature
def test_get_collection_segments(road_a, road_b):
    output = KmlOutput('km')
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    segments = output.get_collection_segments(collection)
    assert len(segments) == 13
    assert segments[0]['start'][0] == 44.47486310000014
    assert segments[12]['start'][0] == 44.57721230000033