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

Function GetLatLon

tools/openlr/openlr_model_xml.cpp:32–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool GetLatLon(pugi::xml_node const & node, int32_t & lat, int32_t & lon)
33{
34 if (!IntegerFromXML(node.child("olr:latitude"), lat) || !IntegerFromXML(node.child("olr:longitude"), lon))
35 return false;
36
37 return true;
38}
39
40// This helper is used to parse records like this:
41// <olr:lfrcnp olr:table="olr001_FunctionalRoadClass" olr:code="4"/>

Callers 3

FirstCoordinateFromXMLFunction · 0.85
CoordinateFromXMLFunction · 0.85

Calls 1

IntegerFromXMLFunction · 0.85

Tested by

no test coverage detected