17 #include <boost/algorithm/string/replace.hpp> 18 #include <boost/functional/hash/hash.hpp> 26 std::string toString(
double num)
29 ss.imbue(std::locale::classic());
31 ss << std::fixed << num;
43 boost::replace_all(url,
"{lat}", toString(wgs.lat));
44 boost::replace_all(url,
"{lon}", toString(wgs.lon));
45 boost::replace_all(url,
"{x}", std::to_string(tile_id.
coord.
x));
46 boost::replace_all(url,
"{y}", std::to_string(tile_id.
coord.
y));
47 boost::replace_all(url,
"{z}", std::to_string(tile_id.
zoom));
56 boost::hash_combine(seed, tile_id.
coord.
x);
57 boost::hash_combine(seed, tile_id.
coord.
y);
58 boost::hash_combine(seed, tile_id.
zoom);
std::string tileURL(TileId const &tile_id)
WGSCoordinate toWGSCoordinate(TileCoordinateGeneric< NumericType > coord, int zoom)
size_t operator()(TileId const &tile_id) const