setting vehicle_profiles.xml
  • In a searching in the file "vehicle_profiles.xml" for the road settings.
    I can find the following:
    <road_class_parameters>
      <id>0</id>
      <speed_extra_urban>130</speed_extra_urban>
      <speed_urban>80</speed_urban>
      <speed_restrictions>yes</speed_restrictions>
     <preference>50</preference>
    </road_class_parameters>

    I cannot the find the settings for enabling/disabling a road type in the file "vehicle_profiles.xml.
    Where are these settings stored???
     
  • 2 Comments sorted by
  • set vehccle first, then you will see it

    here is part my content
    <?xml version="1.0" encoding="utf-8"?><truck_restrictions><selected_profile>Truck</selected_profile><set><name>Pedestrian</name><vehicle_type>pedestrian</vehicle_type><speed_limit>4294967295</speed_limit><optimization>shortest-transit</optimization><fuel>0</fuel><consumption_extra_urban>0.00000</consumption_extra_urban><consumption_urban>0.00000</consumption_urban><gross_weight>0.00000</gross_weight><weight_per_axle>0.00000</weight_per_axle><width>0.00000</width><height>0.00000</height><total_length>0.00000</total_length><hazmat>no</hazmat><uturn>yes</uturn><road_class_parameters><id>0</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>-50</preference></road_class_parameters><road_class_parameters><id>1</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>2</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>3</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>4</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>5</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>6</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>7</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>8</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>9</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>10</id><speed_extra_urban>5</speed_extra_urban><speed_urban>5</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><toll_closed>no</toll_closed><charge_closed>no</charge_closed><congestion_charge_closed>no</congestion_charge_closed><prohibited_surface/><blocked_passage_penalty>20000</blocked_passage_penalty></set><set><name>Bus</name><vehicle_type>bus</vehicle_type><speed_limit>4294967295</speed_limit><optimization>fastest-transit</optimization><fuel>3</fuel><consumption_extra_urban>0.00000</consumption_extra_urban><consumption_urban>0.00000</consumption_urban><gross_weight>3.50000</gross_weight><weight_per_axle>3.50000</weight_per_axle><width>2.50000</width><height>4.00000</height><total_length>12.00000</total_length><hazmat>no</hazmat><uturn>yes</uturn><road_class_parameters><id>0</id><speed_extra_urban>80</speed_extra_urban><speed_urban>80</speed_urban><speed_restrictions>yes</speed_restrictions><preference>100</preference></road_class_parameters><road_class_parameters><id>1</id><speed_extra_urban>80</speed_extra_urban><speed_urban>50</speed_urban><speed_restrictions>yes</speed_restrictions><preference>90</preference></road_class_parameters><road_class_parameters><id>2</id><speed_extra_urban>80</speed_extra_urban><speed_urban>50</speed_urban><speed_restrictions>yes</speed_restrictions><preference>80</preference></road_class_parameters><road_class_parameters><id>3</id><speed_extra_urban>80</speed_extra_urban><speed_urban>50</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>4</id><speed_extra_urban>70</speed_extra_urban><speed_urban>50</speed_urban><speed_restrictions>yes</speed_restrictions><preference>-50</preference></road_class_parameters><road_class_parameters><id>5</id><speed_extra_urban>60</speed_extra_urban><speed_urban>50</speed_urban><speed_restrictions>yes</speed_restrictions><preference>-50</preference></road_class_parameters><road_class_parameters><id>6</id><speed_extra_urban>60</speed_extra_urban><speed_urban>40</speed_urban><speed_restrictions>yes</speed_restrictions><preference>-50</preference></road_class_parameters><road_class_parameters><id>7</id><speed_extra_urban>60</speed_extra_urban><speed_urban>40</speed_urban><speed_restrictions>yes</speed_restrictions><preference>-50</preference></road_class_parameters><road_class_parameters><id>8</id><speed_extra_urban>40</speed_extra_urban><speed_urban>0</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>9</id><speed_extra_urban>20</speed_extra_urban><speed_urban>0</speed_urban><speed_restrictions>yes</speed_restrictions><preference>50</preference></road_class_parameters><road_class_parameters><id>10</id><speed_extra_urban>40</speed_extra_urban><speed_urban>30</speed_urban><speed_restrictions>yes</speed_restrictions><preference>-50</preference></road_class_parameters><toll_closed>no</toll_closed><charge_closed>no</charge_closed><congestion_charge_closed>no</congestion_charge_closed><prohibited_surface/><blocked_passage_penalty>20000</blocked_passage_penalty></set><set><name>Bicycle</name><vehicle_type>bicycle</vehicle_type>
  • Found it!
    value of <preference> is negative when the road type is disabled!

    Thanks!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion