高德地图API坐标拾取和用R函数得到的坐标不一致,
address <- "聚福苑社区居委会"
方法1:高德地图API:https://lbs.amap.com/tools/picker
坐标拾取结果是:116.555695,39.91743
方法2:R函数:
x1<- fromJSON(
paste0('https://restapi.amap.com/v3/geocode/geo?address=',
address,'&key=', key))
x2<- x1$geocodes$location
得到的坐标结果是:
[1] "120.939133,31.734976"
2个结果不一致,方法1的结果是准确的,方法2的结果是错误的,不知道是什么原因呢?谢谢