route_network/tests/test_planner.py
def tiny_oneway():
    'initialize test data: two points with one segment from first to second'
    r = RouteNetwork()
    r.points.append(makeWayPoint('da7c242f-2efe-5175-9961-49cc621b80b9',
                                 30.3840168, -97.72821))
    r.points.append(makeWayPoint('812f1c08-a34b-5a21-92b9-18b2b0cf4950',
                                 30.385729, -97.7316754))
    s = makeSegment('41b7d2be-3c37-5a78-a7ac-248d939af379',
                    'da7c242f-2efe-5175-9961-49cc621b80b9',
                    '812f1c08-a34b-5a21-92b9-18b2b0cf4950')
    geodesy.props.put(s, 'oneway', 'yes')
    r.segments.append(s)

    return r
initialize test data: two points with one segment from first to second
initialize test data: two points with one segment from first to second
initialize test data : two points with one segment from first to second
def tiny_oneway():
    r = RouteNetwork()
    r.points.append(makeWayPoint('da7c242f-2efe-5175-9961-49cc621b80b9',
                                 30.3840168, -97.72821))
    r.points.append(makeWayPoint('812f1c08-a34b-5a21-92b9-18b2b0cf4950',
                                 30.385729, -97.7316754))
    s = makeSegment('41b7d2be-3c37-5a78-a7ac-248d939af379',
                    'da7c242f-2efe-5175-9961-49cc621b80b9',
                    '812f1c08-a34b-5a21-92b9-18b2b0cf4950')
    geodesy.props.put(s, 'oneway', 'yes')
    r.segments.append(s)
    return r
def tiny_oneway ( ) : r = RouteNetwork ( ) r . points . append ( makeWayPoint ( 'da7c242f-2efe-5175-9961-49cc621b80b9' , 30.3840168 , - 97.72821 ) ) r . points . append ( makeWayPoint ( '812f1c08-a34b-5a21-92b9-18b2b0cf4950' , 30.385729 , - 97.7316754 ) ) s = makeSegment ( '41b7d2be-3c37-5a78-a7ac-248d939af379' , 'da7c242f-2efe-5175-9961-49cc621b80b9' , '812f1c08-a34b-5a21-92b9-18b2b0cf4950' ) geodesy . props . put ( s , 'oneway' , 'yes' ) r . segments . append ( s ) return r
initialize test data: two points with one segment from first to second
initialize test data : two points with one segment from first to second
'initialize test data: two points with one segment from first to second'