1、建立一个数组,存放转换前的经纬度。创建百度的坐标点,但是用谷歌的经纬度
var points = [new BMap.Point(116.3786889372559,39.90762965106183),
new BMap.Point(116.38632786853032,39.90795884517671),
new BMap.Point(116.39534009082035,39.907432133833574),
new BMap.Point(116.40624058825688,39.90789300648029),
new BMap.Point(116.41413701159672,39.90795884517671)
];
2、然后调用官方公布的接口
BMap.Convertor.transMore(points,2,callback);