bcgov / ols-router

BC Advanced Route Planner
https://bcgov.github.io/ols-router/
Apache License 2.0
23 stars 11 forks source link

Strata road global distortion set too high #239

Closed mraross closed 3 years ago

mraross commented 4 years ago

925 Main St, West Vancouver 1564 Argyle Ave, West Vancouver

strata global distortion value for non-truck roads set to 2, causing loopy routes with invalid truck route partition signatures

image.png

mraross commented 4 years ago

Lowered all private roads (e.g., alleyway,driveway,recreation,resource,restricted,service,strata) from 2 to 1.3 which is 0.1 higher than next lowest class (local)

globalDistortionField=alleyway:1.3,alleyway.truck:1.2,arterial_major:1.01,arterial_major.truck:1,arterial_minor:1.01,arterial_minor.truck:1,collector_major:1.01,collector_major.truck:1.01,collector_minor:1.01,collector_minor.truck:1.01,driveway:1.3,driveway.truck:1.2,ferry:1,ferry.truck:1,freeway:1,freeway.truck:1,highway_major:1,highway_major.truck:1,highway_minor:1,highway_minor.truck:1,lane:1.01,lane.truck:1.01,local:1.2,local.truck:1.2,ramp:1,ramp.truck:1,recreation:1.3,recreation.truck:1.2,resource:1.3,resource.truck:1.2,restricted:1.3,restricted.truck:1.2,service:1.3,service.truck:1.2,strata:1.3,strata.truck:1.2,yield_lane:1.01,yield_lane.truck:1.01,&xingCost=3.0,10.0,7.0,1.5&turnCost=3.0,1.0,10.0,5.0

mraross commented 4 years ago

Compressed gdf range down from 1.3 to 1.2 to better avoid loopy best routes

globalDistortionField=alleyway:1.2,alleyway.truck:1.1,arterial_major:1.01,arterial_major.truck:1,arterial_minor:1.01,arterial_minor.truck:1,collector_major:1.01,collector_major.truck:1.01,collector_minor:1.01,collector_minor.truck:1.01,driveway:1.2,driveway.truck:1.1,ferry:1,ferry.truck:1,freeway:1,freeway.truck:1,highway_major:1,highway_major.truck:1,highway_minor:1,highway_minor.truck:1,lane:1.01,lane.truck:1.01,local:1.1,local.truck:1.05,ramp:1,ramp.truck:1,recreation:1.2,recreation.truck:1.1,resource:1.2,resource.truck:1.1,restricted:1.2,restricted.truck:1.1,service:1.2,service.truck:1.1,strata:1.2,strata.truck:1.1,yield_lane:1.01,yield_lane.truck:1.01,&xingCost=3.0,10.0,7.0,1.5&turnCost=3.0,1.0,10.0,5.0

mraross commented 4 years ago

And here is the result:

image

mraross commented 4 years ago

Verified in delivery