Welcome to mirror list, hosted at ThFree Co, Russian Federation.

car_model_coefs_default.hpp « routing_common - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 65bbeb9f26388b29033539bc901b4f17f5f61aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#pragma once

#include "routing_common/maxspeed_conversion.hpp"
#include "routing_common/vehicle_model.hpp"

// These are default car model coefficients for open source developers.

namespace routing
{
HighwayBasedFactors const kGlobalHighwayBasedFactors = {
  {HighwayType::HighwayMotorway, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(1.0)}
  }},
  {HighwayType::HighwayTrunk, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(1.0)}
  }},
  {HighwayType::HighwayPrimary /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.95)}
  }},
  {HighwayType::HighwaySecondary /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.90)}
  }},
  {HighwayType::HighwayTertiary /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.85)}
  }},
  {HighwayType::HighwayResidential /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.75)}
  }},
  {HighwayType::HighwayUnclassified /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.80)}
  }},
  {HighwayType::HighwayService /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.80)}
  }},
  {HighwayType::HighwayLivingStreet /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.75)}
  }},
  {HighwayType::HighwayRoad /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.30)}
  }},
  {HighwayType::HighwayTrack /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.30)}
  }},
  {HighwayType::HighwayTrack /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.30)}
  }},
  {HighwayType::RouteFerryMotorcar /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.90)}
  }},
  {HighwayType::RouteFerryMotorVehicle /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.90)}
  }},
  {HighwayType::RailwayRailMotorVehicle /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.90)}
  }},
  {HighwayType::RouteShuttleTrain /* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.90)}
  }},
  {HighwayType::ManMadePier/* highway class */, {
    // {maxspeed : InOutCityFactor(in city, out city)}
    {kCommonMaxSpeedValue, InOutCityFactor(0.90)}
  }},
};

HighwayBasedMeanSpeeds const kGlobalHighwayBasedMeanSpeeds = {
  // {highway class : InOutCitySpeedKMpH(in city, out city)}
  {HighwayType::HighwayMotorway, InOutCitySpeedKMpH({117.80, 104.70} /* in city */, {123.40, 111.79} /* out city */)},
  {HighwayType::HighwayMotorwayLink, InOutCitySpeedKMpH({106.02, 94.23} /* in city */, {111.06, 100.61} /* out city */)},
  {HighwayType::HighwayTrunk, InOutCitySpeedKMpH({83.40, 78.55} /* in city */, {100.20, 92.55} /* out city */)},
  {HighwayType::HighwayTrunkLink, InOutCitySpeedKMpH({75.06, 70.69} /* in city */, {90.18, 83.30} /* out city */)},
  {HighwayType::HighwayPrimary, InOutCitySpeedKMpH({63.10, 58.81} /* in city */, {75.20, 69.60} /* out city */)},
  {HighwayType::HighwayPrimaryLink, InOutCitySpeedKMpH({56.79, 52.93} /* in city */, {67.68, 62.64} /* out city */)},
  {HighwayType::HighwaySecondary, InOutCitySpeedKMpH({52.80, 47.63} /* in city */, {60.30, 56.99} /* out city */)},
  {HighwayType::HighwaySecondaryLink, InOutCitySpeedKMpH({47.52, 42.87} /* in city */, {54.27, 51.29} /* out city */)},
  {HighwayType::HighwayTertiary, InOutCitySpeedKMpH({45.50, 38.86} /* in city */, {50.50, 44.14} /* out city */)},
  {HighwayType::HighwayTertiaryLink, InOutCitySpeedKMpH({40.95, 34.97} /* in city */, {45.45, 39.73} /* out city */)},
  {HighwayType::HighwayResidential, InOutCitySpeedKMpH({20.00, 20.00} /* in city */, {25.00, 25.00} /* out city */)},
  {HighwayType::HighwayUnclassified, InOutCitySpeedKMpH({30.00, 30.00} /* in city */, {40.00, 40.00} /* out city */)},
  {HighwayType::HighwayService, InOutCitySpeedKMpH({15.00, 15.00} /* in city */, {15.00, 15.00} /* out city */)},
  {HighwayType::HighwayLivingStreet, InOutCitySpeedKMpH({10.00, 10.00} /* in city */, {10.00, 10.00} /* out city */)},
  {HighwayType::HighwayRoad, InOutCitySpeedKMpH({10.00, 10.00} /* in city */, {10.00, 10.00} /* out city */)},
  {HighwayType::HighwayTrack, InOutCitySpeedKMpH({5.00, 5.00} /* in city */, {5.00, 5.00} /* out city */)},
  {HighwayType::RouteFerryMotorcar, InOutCitySpeedKMpH({10.00, 10.00} /* in city */, {10.00, 10.00} /* out city */)},
  {HighwayType::RouteFerryMotorVehicle, InOutCitySpeedKMpH({10.00, 10.00} /* in city */, {10.00, 10.00} /* out city */)},
  {HighwayType::RailwayRailMotorVehicle, InOutCitySpeedKMpH({10.00, 10.00} /* in city */, {10.00, 10.00} /* out city */)},
  {HighwayType::RouteShuttleTrain, InOutCitySpeedKMpH({25.00, 25.00} /* in city */, {25.00, 25.00} /* out city */)},
  {HighwayType::ManMadePier, InOutCitySpeedKMpH({17.00, 10.00} /* in city */, {17.00, 10.00} /* out city */)},
};

CountryToHighwayBasedFactors const kCountryToHighwayBasedFactors{};
CountryToHighwayBasedMeanSpeeds const kCountryToHighwayBasedMeanSpeeds{};
}  // namespace routing