| 105 | } |
| 106 | |
| 107 | std::optional<ms::LatLon> LatLonFormXML(pugi::xml_node const & node) |
| 108 | { |
| 109 | auto const lat = DoubleFromXML(node.child("latitude")); |
| 110 | auto const lon = DoubleFromXML(node.child("longitude")); |
| 111 | |
| 112 | return lat && lon ? ms::LatLon(*lat, *lon) : ms::LatLon::Zero(); |
| 113 | } |
| 114 | |
| 115 | bool CoordinateFromXML(pugi::xml_node const & node, ms::LatLon const & prevCoord, ms::LatLon & latLon) |
| 116 | { |
no test coverage detected