如何将十进制的经纬度转换为WGS84坐标?
How to convert latitude and longitude in decimal to WGS84 coordinate?
我正在尝试在地图上显示点列表。但这些纬度和经度以小数形式给出:
index X y
1 24050.0000 123783.3333
2 24216.6667 123933.3333
3 24233.3333 123950.0000
4 24233.3333 124016.6667
........................
这些数据取自sources(page)。好像直接用Google Map API就可以用这些数据了,怎么办呢?
如何将它们转换成与Google地图API兼容的格式来显示?我正在使用 JavaScript.
在我看来,这些点只是 WGS84 坐标乘以 1000。下面的代码给出了我在日本的合理位置,其中数据是 array of points in the file you reference.
var marker = new google.maps.Marker({
map: map,
position: {
lat: data[i][1] / 1000,
lng: data[i][2] / 1000
}
});
我正在尝试在地图上显示点列表。但这些纬度和经度以小数形式给出:
index X y
1 24050.0000 123783.3333
2 24216.6667 123933.3333
3 24233.3333 123950.0000
4 24233.3333 124016.6667
........................
这些数据取自sources(page)。好像直接用Google Map API就可以用这些数据了,怎么办呢?
如何将它们转换成与Google地图API兼容的格式来显示?我正在使用 JavaScript.
在我看来,这些点只是 WGS84 坐标乘以 1000。下面的代码给出了我在日本的合理位置,其中数据是 array of points in the file you reference.
var marker = new google.maps.Marker({
map: map,
position: {
lat: data[i][1] / 1000,
lng: data[i][2] / 1000
}
});