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

Function GetLanesMetadataTag

libs/routing/directions_engine.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42feature::Metadata::EType GetLanesMetadataTag(FeatureType & ft, bool isForward)
43{
44 auto directionTag =
45 isForward ? feature::Metadata::FMD_TURN_LANES_FORWARD : feature::Metadata::FMD_TURN_LANES_BACKWARD;
46 if (ft.HasMetadata(directionTag))
47 return directionTag;
48 return feature::Metadata::FMD_TURN_LANES;
49}
50
51void LoadLanes(LoadedPathSegment & pathSegment, FeatureType & ft, bool isForward)
52{

Callers 1

LoadLanesFunction · 0.85

Calls 1

HasMetadataMethod · 0.45

Tested by

no test coverage detected