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

Function GetTurnString

libs/routing/turns.cpp:166–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166string GetTurnString(CarDirection turn)
167{
168 for (auto const & p : g_turnNames)
169 if (p.first == turn)
170 return p.second;
171
172 ASSERT(false, (static_cast<int>(turn)));
173 return "unknown CarDirection";
174}
175
176bool IsLeftTurn(CarDirection t)
177{

Callers 2

DebugPrintFunction · 0.85

Calls 1

ASSERTFunction · 0.85

Tested by

no test coverage detected