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

Function GetTransitType

libs/map/transit/transit_display.cpp:64–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62std::string const kZeroIcon = "zero-icon";
63
64TransitType GetTransitType(string const & type)
65{
66 if (type == "subway")
67 return TransitType::Subway;
68 if (type == "light_rail")
69 return TransitType::LightRail;
70 if (type == "monorail")
71 return TransitType::Monorail;
72 if (type == "train" || type == "rail")
73 return TransitType::Train;
74
75 if (type == "tram")
76 return TransitType::Tram;
77 if (type == "bus")
78 return TransitType::Bus;
79 if (type == "ferry")
80 return TransitType::Ferry;
81 if (type == "cabletram")
82 return TransitType::CableTram;
83 if (type == "aerial_lift")
84 return TransitType::AerialLift;
85 if (type == "funicular")
86 return TransitType::Funicular;
87 if (type == "trolleybus")
88 return TransitType::Trolleybus;
89 if (type == "air_service")
90 return TransitType::AirService;
91 if (type == "water_service")
92 return TransitType::WaterService;
93
94 LOG(LERROR, (type));
95 UNREACHABLE();
96}
97
98uint32_t ColorToARGB(df::ColorConstant const & colorConstant)
99{

Callers 2

AddEdgePTForSubrouteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected