MCPcopy Create free account
hub / github.com/comaps/comaps / GetRoutingSettings

Function GetRoutingSettings

libs/routing/routing_settings.cpp:31–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29{}
30
31RoutingSettings GetRoutingSettings(VehicleType vehicleType)
32{
33 switch (vehicleType)
34 {
35 case VehicleType::Pedestrian:
36 return {false /* useDirectionForRouteBuilding */,
37 false /* m_matchRoute */,
38 true /* m_soundDirection */,
39 20.0 /* m_matchingThresholdM */,
40 false /* m_showTurnAfterNext */,
41 -1 /* m_minSpeedForRouteRebuildMpS */,
42 15.0 /* m_finishToleranceM */,
43 6 /* m_maxOutgoingPointsCount */,
44 5.0 /* m_minOutgoingDistMeters */,
45 2 /* m_maxIngoingPointsCount */,
46 4.0 /* m_minIngoingDistMeters */,
47 3 /* m_notSoCloseMaxPointsCount */,
48 25.0 /* m_notSoCloseMaxDistMeters */};
49 case VehicleType::Transit:
50 return {false /* useDirectionForRouteBuilding */,
51 true /* m_matchRoute */,
52 false /* m_soundDirection */,
53 40.0 /* m_matchingThresholdM */,
54 false /* m_showTurnAfterNext */,
55 -1 /* m_minSpeedForRouteRebuildMpS */,
56 15.0 /* m_finishToleranceM */,
57 6 /* m_maxOutgoingPointsCount */,
58 5.0 /* m_minOutgoingDistMeters */,
59 2 /* m_maxIngoingPointsCount */,
60 4.0 /* m_minIngoingDistMeters */,
61 3 /* m_notSoCloseMaxPointsCount */,
62 25.0 /* m_notSoCloseMaxDistMeters */};
63 case VehicleType::Bicycle:
64 return {false /* useDirectionForRouteBuilding */,
65 true /* m_matchRoute */,
66 true /* m_soundDirection */,
67 30.0 /* m_matchingThresholdM */,
68 false /* m_showTurnAfterNext */,
69 -1 /* m_minSpeedForRouteRebuildMpS */,
70 15.0 /* m_finishToleranceM */,
71 9 /* m_maxOutgoingPointsCount */,
72 10.0 /* m_minOutgoingDistMeters */,
73 2 /* m_maxIngoingPointsCount */,
74 10.0 /* m_minIngoingDistMeters */,
75 3 /* m_notSoCloseMaxPointsCount */,
76 25.0 /* m_notSoCloseMaxDistMeters */};
77 case VehicleType::Car:
78 return {true /* useDirectionForRouteBuilding */,
79 true /* m_matchRoute */,
80 true /* m_soundDirection */,
81 30.0 /* m_matchingThresholdM */,
82 true /* m_showTurnAfterNext */,
83 measurement_utils::KmphToMps(3.0) /* m_minSpeedForRouteRebuildMpS */,
84 20.0 /* m_finishToleranceM */,
85 9 /* m_maxOutgoingPointsCount */,
86 120.0 /* m_minOutgoingDistMeters */,
87 2 /* m_maxIngoingPointsCount */,
88 100.0 /* m_minIngoingDistMeters */,

Callers 9

SetRouterImplMethod · 0.85
MakeTurnAnnotationMethod · 0.85
RouteMethod · 0.85
RoutingSessionMethod · 0.85
RouteMethod · 0.85
InitRoutingSessionFunction · 0.85
UNIT_TESTFunction · 0.85
UNIT_TESTFunction · 0.85
InitRoutingSessionMethod · 0.85

Calls 1

KmphToMpsFunction · 0.85

Tested by 3

InitRoutingSessionFunction · 0.68
UNIT_TESTFunction · 0.68
UNIT_TESTFunction · 0.68