Dataset之谷歌地图数据集:谷歌地图数据集的简介、安装、使用方法之详细攻略
目录
谷歌地图数据集的简介
谷歌地图中的1000多张图片。包含了卫星图像和对应的地图,大小为246MB。
谷歌地图数据集的安装
百度云盘文件已丢失……
国外地址链接:
https://medium.com/@olivercameron/20-weird-wonderful-datasets-for-machine-learning-c70fc89b73d5
https://research.googleblog.com/2016/11/open-source-visualization-of-gps.html
谷歌地图数据集的使用方法
更新……
1、javascript的实现(包含编码以及经纬度)
function GetQuadtreeAddress(long, lat)
{
var PI = 3.1415926535897;
var digits = 18; // how many digits precision
// now convert to normalized square coordinates
// use standard equations to map into mercator projection
var x = (180.0 + parseFloat(long)) / 360.0;
var y = -parseFloat(lat) * PI / 180; // convert to radians
y = 0.5 * Math.log((1+Math.sin(y)) / (1 - Math.sin(y)));
y *= 1.0/(2 * PI); // scale factor from radians to normalized
y += 0.5; // and make y range from 0 - 1
var quad = "t"; // google addresses start with t
var lookup = "qrts"; // tl tr bl br
while (digits–) // (post-decrement)
{
// make sure we only look at fractional part
x -= Math.floor(x);
y -= Math.floor(y);
quad = quad + lookup.substr((x >= 0.5 ? 1 : 0) + (y >= 0.5 ? 2 : 0), 1);
// now descend into that square
x *= 2;
y *= 2;
}
return quad;
}