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

Function LatLonToXML

tools/openlr/decoded_path.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void LatLonToXML(ms::LatLon const & latLon, pugi::xml_node & node)
35{
36 auto const kDigitsAfterComma = 5;
37 node.append_child("lat").text() = strings::to_string_dac(latLon.m_lat, kDigitsAfterComma).data();
38 node.append_child("lon").text() = strings::to_string_dac(latLon.m_lon, kDigitsAfterComma).data();
39}
40
41void LatLonFromXML(pugi::xml_node const & node, ms::LatLon & latLon)
42{

Callers 1

PathToXMLFunction · 0.85

Calls 2

to_string_dacFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected