nodejs geotransform

// National Bureau measured the coordinates (Mars coordinates, such as with high moral map), Baidu coordinates, wgs84 coordinates (Google abroad and coordinate the vast majority of foreign online map used)
var = coordtransform The require ( 'coordtransform');
// / / Baidu latitude and longitude coordinates measured transit country Board coordinates
// var bd09togcj02 = coordtransform.bd09togcj02 (116.404, 39.915);
// // States Bureau measured coordinates latitude and longitude coordinates transfected Baidu
// var gcj02tobd09 = coordtransform.gcj02tobd09 (116.404, 39.915);
/ / // wgs84 Board coordinates measured transit country
// var wgs84togcj02 = coordtransform.wgs84togcj02 (116.404, 39.915);
// States Bureau measured WGS84 coordinate to a coordinate
var gcj02towgs84 = coordtransform.gcj02towgs84 (114.495418,36.610758);
// the console.log ( bd09togcj02);
// the console.log (gcj02tobd09);
// the console.log (wgs84togcj02);
the console.log (gcj02towgs84);

Guess you like

Origin www.cnblogs.com/qiyc/p/12530240.html