Add:Core:New profile to calculate shortest car route (within some limits)
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 4 Dec 2011 18:17:04 +0000 (18:17 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 4 Dec 2011 18:17:04 +0000 (18:17 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4854 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit_shipped.xml

index a0a8118..9018e1f 100644 (file)
@@ -186,6 +186,71 @@ Navigation</text></img>
                        <roadprofile item_types="ferry" speed="40" route_weight="40"/>
                </vehicleprofile>
 
+               <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">
+                       <roadprofile item_types="street_0,street_1_city,living_street,street_service,track_gravelled,track_unpaved,street_parking_lane" speed="10" route_weight="60">
+                                       <announcement level="0" distance_metric="25"/>
+                                       <announcement level="1" distance_metric="100"/>
+                                       <announcement level="2" distance_metric="200"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_2_city,track_paved" speed="30" route_weight="60">
+                                       <announcement level="0" distance_metric="50"/>
+                                       <announcement level="1" distance_metric="200"/>
+                                       <announcement level="2" distance_metric="500"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_3_city" speed="40" route_weight="60">
+                                       <announcement level="0" distance_metric="50"/>
+                                       <announcement level="1" distance_metric="200"/>
+                                       <announcement level="2" distance_metric="500"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_4_city" speed="50" route_weight="60">
+                                       <announcement level="0" distance_metric="50"/>
+                                       <announcement level="1" distance_metric="200"/>
+                                       <announcement level="2" distance_metric="500"/>
+                       </roadprofile>
+                       <roadprofile item_types="highway_city" speed="80" route_weight="60">
+                                       <announcement level="0" distance_metric="100"/>
+                                       <announcement level="1" distance_metric="400"/>
+                                       <announcement level="2" distance_metric="1000"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_1_land" speed="60" route_weight="60">
+                                       <announcement level="0" distance_metric="100"/>
+                                       <announcement level="1" distance_metric="400"/>
+                                       <announcement level="2" distance_metric="1000"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_2_land" speed="65" route_weight="60">
+                                       <announcement level="0" distance_metric="100"/>
+                                       <announcement level="1" distance_metric="400"/>
+                                       <announcement level="2" distance_metric="1000"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_3_land" speed="70" route_weight="60">
+                                       <announcement level="0" distance_metric="100"/>
+                                       <announcement level="1" distance_metric="400"/>
+                                       <announcement level="2" distance_metric="1000"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_4_land" speed="80" route_weight="60">
+                                       <announcement level="0" distance_metric="100"/>
+                                       <announcement level="1" distance_metric="400"/>
+                                       <announcement level="2" distance_metric="1000"/>
+                       </roadprofile>
+                       <roadprofile item_types="street_n_lanes" speed="120" route_weight="60">
+                                       <announcement level="0" distance_metric="300"/>
+                                       <announcement level="1" distance_metric="1000"/>
+                                       <announcement level="2" distance_metric="2000"/>
+                       </roadprofile>
+                       <roadprofile item_types="highway_land" speed="120" route_weight="60">
+                                       <announcement level="0" distance_metric="300"/>
+                                       <announcement level="1" distance_metric="1000"/>
+                                       <announcement level="2" distance_metric="2000"/>
+                       </roadprofile>
+                       <roadprofile item_types="ramp" speed="40" route_weight="60">
+                                       <announcement level="0" distance_metric="50"/>
+                                       <announcement level="1" distance_metric="200"/>
+                                       <announcement level="2" distance_metric="500"/>
+                       </roadprofile>
+                       <roadprofile item_types="roundabout" speed="10" route_weight="60"/>
+                       <roadprofile item_types="ferry" speed="40" route_weight="60"/>
+               </vehicleprofile>
+
                <vehicleprofile name="car_avoid_tolls" flags="0x4000000" flags_forward_mask="0x4000402" flags_reverse_mask="0x4000001" maxspeed_handling="0" route_mode="0" static_speed="5" static_distance="25">
                        <roadprofile item_types="street_0,street_1_city,living_street,street_service,track_gravelled,track_unpaved,street_parking_lane" speed="10" route_weight="10">
                                        <announcement level="0" distance_metric="25"/>