MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / GetRelations

Method GetRelations

src/extractor/scripting_environment_lua.cpp:1242–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1240}
1241
1242std::vector<std::string> Sol2ScriptingEnvironment::GetRelations()
1243{
1244 auto &context = GetSol2Context();
1245 switch (context.api_version)
1246 {
1247 case 4:
1248 case 3:
1249 return Sol2ScriptingEnvironment::GetStringListFromTable("relation_types");
1250 default:
1251 return {};
1252 }
1253}
1254
1255void Sol2ScriptingEnvironment::ProcessTurn(ExtractionTurn &turn)
1256{

Callers 2

InitContextMethod · 0.45
ParseOSMDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected