Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix:xml:Fix bike routing #850

Merged
merged 2 commits into from
Sep 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions navit/navit_shipped.xml
Original file line number Diff line number Diff line change
Expand Up @@ -276,24 +276,27 @@ Waypoint</text></img>
<roadprofile item_types="roundabout" speed="10" route_weight="10"/>
<roadprofile item_types="ferry" speed="40" route_weight="40"/>
</vehicleprofile>
<vehicleprofile name="bike" route_depth="18:25%,18:40000" flags="0x40000000" flags_forward_mask="0x40000000" flags_reverse_mask="0x40000000" maxspeed_handling="1" route_mode="0" static_speed="5" static_distance="25">
<roadprofile item_types="steps" speed="2" route_weight="5" />
<roadprofile item_types="street_pedestrian,footway" speed="5" route_weight="10" />
<roadprofile item_types="path,track_ground" speed="12" route_weight="12" />
<roadprofile item_types="track_gravelled" speed="17" route_weight="15" />
<!-- cycleways, paved tracks, serviceways etc. are the favourite ways -->
<roadprofile item_types="track_paved,cycleway,street_service,street_parking_lane" speed="22" route_weight="20" />
<vehicleprofile name="bike" route_depth="18:25%,18:40000" flags="0x40000000" flags_forward_mask="0x40000002" flags_reverse_mask="0x40000001" maxspeed_handling="1" route_mode="0" static_speed="5" static_distance="25">
<!-- cycleways and paved tracks are the favourite ways (caveat: can be next to a main road) -->
<roadprofile item_types="track_paved,cycleway" speed="20" route_weight="20" />
<!-- residential, unclassified, living street etc. -->
<roadprofile item_types="street_0,street_1_city,living_street" speed="20" route_weight="15" />
<!-- tertiary and minor roads are acceptable, but should be avoided in favour of tracks and cycleways -->
<roadprofile item_types="street_2_city,street_1_land,street_2_land" speed="22" route_weight="12" />
<!-- secondary etc. are acceptable when necessary -->
<roadprofile item_types="street_3_city" speed="22" route_weight="10" />
<!-- primary, trunk etc. should be avoided -->
<roadprofile item_types="street_4_city,ramp" speed="22" route_weight="7" />
<!-- Those types do not appear in maptool.c and therefore are not used ATM -->
<roadprofile item_types="street_3_land,street_4_land" speed="20" route_weight="7" />
<!--roundabout does not apply to OSMaps -->
<roadprofile item_types="street_0,street_1_city,street_1_land,living_street" speed="20" route_weight="20" />
<!-- ways shared with pedestrians are OK if access flags permit, but lower preference (caveat: may or may not be segregated) -->
<roadprofile item_types="street_pedestrian,footway" speed="17" route_weight="17" />
<!-- serviceways etc. are OK but lower preference -->
<roadprofile item_types="street_service,street_parking_lane" speed="17" route_weight="15" />
<!-- tertiary roads are acceptable, but should be avoided in favour of tracks and cycleways -->
<roadprofile item_types="street_2_city,street_2_land" speed="20" route_weight="15" />
<!-- secondary, primary and trunk are acceptable when necessary, but give preference to lower tiers -->
<roadprofile item_types="street_3_city,street_3_land" speed="20" route_weight="15" />
<roadprofile item_types="street_4_land,street_4_city" speed="20" route_weight="12" />
<roadprofile item_types="street_n_lanes,ramp" speed="20" route_weight="10" />
<!-- low preference for rough terrain -->
<roadprofile item_types="path,track_ground" speed="7" route_weight="7" />
<roadprofile item_types="track_gravelled" speed="17" route_weight="12" />
<!-- avoid steps unless that means a huge detour -->
<roadprofile item_types="steps" speed="2" route_weight="2" />
<!--roundabout does not apply to OSM maps -->
<roadprofile item_types="roundabout" speed="20" route_weight="10"/>
<roadprofile item_types="ferry" speed="40" route_weight="40"/>
</vehicleprofile>
Expand Down