| 169 | } |
| 170 | |
| 171 | Polygon GetWaysOrRelationsGeometry(pugi::xml_document const & osmResponse, pugi::xml_node const & wayOrRelation) |
| 172 | { |
| 173 | if (strcmp(wayOrRelation.name(), "way") == 0) |
| 174 | return GetWaysGeometry(osmResponse, wayOrRelation); |
| 175 | return GetRelationsGeometry(osmResponse, wayOrRelation); |
| 176 | } |
| 177 | |
| 178 | /// Returns value form [-1, 1]. Negative values are used as penalty, positive as score. |
| 179 | /// |osmResponse| - nodes, ways and relations from osm; |
no test coverage detected