mirror of
https://github.com/zvx-echo6/recon.git
synced 2026-05-20 06:34:40 +02:00
offroute: add auto mode for standard driving routes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
87a4741b8d
commit
cf758476b4
1 changed files with 5 additions and 2 deletions
|
|
@ -54,6 +54,7 @@ OFF_NETWORK_THRESHOLD_M = 500
|
||||||
|
|
||||||
# Mode to Valhalla costing mapping
|
# Mode to Valhalla costing mapping
|
||||||
MODE_TO_COSTING = {
|
MODE_TO_COSTING = {
|
||||||
|
"auto": "auto",
|
||||||
"foot": "pedestrian",
|
"foot": "pedestrian",
|
||||||
"mtb": "bicycle",
|
"mtb": "bicycle",
|
||||||
"atv": "auto",
|
"atv": "auto",
|
||||||
|
|
@ -63,6 +64,8 @@ MODE_TO_COSTING = {
|
||||||
# Mode to valid entry point highway classes
|
# Mode to valid entry point highway classes
|
||||||
# foot = any trail/track/road, mtb = tracks and roads, vehicle = roads only
|
# foot = any trail/track/road, mtb = tracks and roads, vehicle = roads only
|
||||||
MODE_TO_VALID_HIGHWAYS = {
|
MODE_TO_VALID_HIGHWAYS = {
|
||||||
|
"auto": {"primary", "secondary", "tertiary", "unclassified", "residential",
|
||||||
|
"service"},
|
||||||
"foot": {"primary", "secondary", "tertiary", "unclassified", "residential",
|
"foot": {"primary", "secondary", "tertiary", "unclassified", "residential",
|
||||||
"service", "track", "path", "footway", "bridleway"},
|
"service", "track", "path", "footway", "bridleway"},
|
||||||
"mtb": {"primary", "secondary", "tertiary", "unclassified", "residential",
|
"mtb": {"primary", "secondary", "tertiary", "unclassified", "residential",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue