| 119 | |
| 120 | template <typename Geometry> |
| 121 | void AppendWay(pugi::xml_document const & osmResponse, pugi::xml_node const & way, Geometry & dest) |
| 122 | { |
| 123 | ForEachRefInWay(osmResponse, way, [&dest](XMLFeature const & xmlFt) |
| 124 | { |
| 125 | auto const & p = xmlFt.GetMercatorCenter(); |
| 126 | bg::append(dest, boost::make_tuple(p.x, p.y)); |
| 127 | }); |
| 128 | } |
| 129 | |
| 130 | Polygon GetWaysGeometry(pugi::xml_document const & osmResponse, pugi::xml_node const & way) |
| 131 | { |
no test coverage detected