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

Method GetXmlFeaturesInRect

libs/editor/server_api.cpp:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188OsmOAuth::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
200OsmOAuth::Response ServerApi06::GetXmlFeaturesAtLatLon(double lat, double lon, double radiusInMeters) const
201{

Callers 1

LoadXmlFromOSMMethod · 0.80

Calls 2

to_string_dacFunction · 0.85
DirectRequestMethod · 0.80

Tested by

no test coverage detected