Ticket #1279: xml_sample_sections.txt

File xml_sample_sections.txt, 4.8 KB (added by jandegr, 6 years ago)
Line 
1route_mode = 0 : auto
2route_mode = 1 : onroad
3route_mode = 2 : creates an 'offroad' route, or one segment between pos. and dest.
4route_mode = 3 : experimental shortest onroad route
5
6
7below is for the penalty - system
8
9maxspeed_handling :
10
110 = always, means replace route_weight with maxspeed, in vanilla routing.
12in the penalty system : speed_used is weighted speed or weighted maxspeed if avalable in OSM
13penalized speed = (maxspeed or  speed) * (route_weight / 100) * (roundabout_weight / 100)
14route_weight and roundabout_weight are not mandatory, so no need to insert a '100' value
15to leave some speed untouched.
161 = only when it limits speed and follows the same wieghting as above
172 = never
18
19<vehicleprofile name="car" route_depth="4:25%,8:40000,18:10000" flags="0x4000000" flags_forward_mask="0x4000002" flags_reverse_mask="0x4000001" maxspeed_handling="0" route_mode="0" static_speed="5" static_distance="25">
20                        <roadprofile item_types="street_0,living_street,street_service,track_gravelled,track_unpaved,street_parking_lane" speed="10"/> 
21                        <roadprofile item_types="street_1_city" speed="30" route_weight="90" />
22                        <roadprofile item_types="street_2_city,track_paved" speed="30" route_weight="90"/>
23                        <roadprofile item_types="street_3_city" speed="50" route_weight="90" roundabout_weight="70"/>
24                        <roadprofile item_types="street_4_city" speed="60" route_weight="90" roundabout_weight="70"/>
25                        <roadprofile item_types="highway_city" speed="100" />
26                        <roadprofile item_types="street_1_land" speed="62" route_weight="90" roundabout_weight="70"/>
27                        <roadprofile item_types="street_2_land" speed="65" route_weight="90" roundabout_weight="70"/>
28                        <roadprofile item_types="street_3_land" speed="70" route_weight="90" roundabout_weight="70"/>
29                        <roadprofile item_types="street_4_land" speed="80" route_weight="95" roundabout_weight="75"/>
30                        <roadprofile item_types="street_n_lanes" speed="120" route_weight="95" />
31                        <roadprofile item_types="highway_land" speed="120"  />
32                        <roadprofile item_types="ramp" speed="90" route_weight="80"/>
33                        <roadprofile item_types="roundabout" speed="10"/><!-- does not apply to OSM -->
34                        <roadprofile item_types="ferry" speed="40" route_weight="100"/>
35                </vehicleprofile>
36
37<vehicleprofile name="car_new_shortest" route_depth="18:25%,18:40000" flags="0x4000000" flags_forward_mask="0x4000002" flags_reverse_mask="0x4000001" maxspeed_handling="0" route_mode="3" static_speed="5" static_distance="25">
38                        <roadprofile item_types="street_0,living_street,street_service,track_gravelled,track_unpaved,street_parking_lane" speed="10"/> 
39                        <roadprofile item_types="street_1_city" speed="30" route_weight="90" />
40                        <roadprofile item_types="street_2_city,track_paved" speed="30" route_weight="90"/>
41                        <roadprofile item_types="street_3_city" speed="50" route_weight="90" roundabout_weight="70"/>
42                        <roadprofile item_types="street_4_city" speed="60" route_weight="90" roundabout_weight="60"/>
43                        <roadprofile item_types="highway_city" speed="100" />
44                        <roadprofile item_types="street_1_land" speed="62" route_weight="90" roundabout_weight="60"/>
45                        <roadprofile item_types="street_2_land" speed="65" route_weight="90" roundabout_weight="60"/>
46                        <roadprofile item_types="street_3_land" speed="70" route_weight="90" roundabout_weight="60"/>
47                        <roadprofile item_types="street_4_land" speed="80" route_weight="95" roundabout_weight="65"/>
48                        <roadprofile item_types="street_n_lanes" speed="120" route_weight="95" />
49                        <roadprofile item_types="highway_land" speed="120"  />
50                        <roadprofile item_types="ramp" speed="90" route_weight="80"/>
51                        <roadprofile item_types="roundabout" speed="10"/><!-- does not apply to OSM -->
52                        <roadprofile item_types="ferry" speed="40" route_weight="100"/>
53                </vehicleprofile>
54
55
56                <vehicleprofile name="car_shortest" flags="0x4000000" flags_forward_mask="0x4000002" flags_reverse_mask="0x4000001" maxspeed_handling="0" route_mode="0" static_speed="5" static_distance="25">
57                        <roadprofile item_types="street_0,street_1_city,living_street,street_service,track_gravelled,track_unpaved,street_parking_lane" speed="60" />
58                        <roadprofile item_types="street_2_city,track_paved" speed="60" />
59                        <roadprofile item_types="street_3_city" speed="60"  />
60                        <roadprofile item_types="street_4_city" speed="60"  />
61                        <roadprofile item_types="highway_city" speed="60"  />
62                        <roadprofile item_types="street_1_land" speed="60"  />
63                        <roadprofile item_types="street_2_land" speed="60"  />
64                        <roadprofile item_types="street_3_land" speed="60"  />
65                        <roadprofile item_types="street_4_land" speed="60" />
66                        <roadprofile item_types="street_n_lanes" speed="60" />
67                        <roadprofile item_types="highway_land" speed="60"  />
68                        <roadprofile item_types="ramp" speed="60" />
69                        <roadprofile item_types="roundabout" speed="60" /><!-- does not apply to OSM -->
70                        <roadprofile item_types="ferry" speed="60"/>
71                </vehicleprofile>
72