| 186 | } |
| 187 | |
| 188 | OsmOAuth::Response ServerApi06::GetXmlFeaturesInRect(double minLat, double minLon, double maxLat, double maxLon) const |
| 189 | { |
| 190 | using strings::to_string_dac; |
| 191 | |
| 192 | // Digits After Comma. |
| 193 | static constexpr double kDAC = 7; |
| 194 | std::string const url = "/map?bbox=" + to_string_dac(minLon, kDAC) + ',' + to_string_dac(minLat, kDAC) + ',' + |
| 195 | to_string_dac(maxLon, kDAC) + ',' + to_string_dac(maxLat, kDAC); |
| 196 | |
| 197 | return m_auth.DirectRequest(url); |
| 198 | } |
| 199 | |
| 200 | OsmOAuth::Response ServerApi06::GetXmlFeaturesAtLatLon(double lat, double lon, double radiusInMeters) const |
| 201 | { |
no test coverage detected