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

Function FromLatLon

generator/intermediate_data.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool FromLatLon(LatLon const & ll, double & lat, double & lon)
31{
32 // Assume that a valid coordinate is not (0, 0).
33 if (ll.m_lat != 0.0 || ll.m_lon != 0.0)
34 {
35 lat = static_cast<double>(ll.m_lat) / kValueOrder;
36 lon = static_cast<double>(ll.m_lon) / kValueOrder;
37 return true;
38 }
39 lat = 0.0;
40 lon = 0.0;
41 return false;
42}
43
44template <class Index, class Container>
45void AddToIndex(Index & index, Key relationId, Container const & values)

Callers 15

CheckAndProcessUTurnMethod · 0.70
GetLimitRectMethod · 0.70
GetPointMethod · 0.70
GetPointMethod · 0.70
GetPointMethod · 0.70
ProcessRoundaboutsMethod · 0.70
EncodePointMethod · 0.70
AddElementToCacheFunction · 0.70
ReadPolygonFunction · 0.70
FilterTownsMethod · 0.70
ParseIntermediateInfoMethod · 0.70

Calls

no outgoing calls

Tested by 10

MakeNodeFeatureBuilderFunction · 0.40
FromLatLonsFunction · 0.40
UNIT_TESTFunction · 0.40
UNIT_CLASS_TESTFunction · 0.40
UNIT_TESTFunction · 0.40
AddNodeMethod · 0.40
UNIT_TESTFunction · 0.40
UNIT_TESTFunction · 0.40
UNIT_TESTFunction · 0.40