baidumap
baidumap copied to clipboard
R interface of baidu map api
#install_github('badbye/baidumap') #百度地图JavaScript API升级后要更新getBaiduMap.R,getCoordinate.R,getLocation.R,getRoute.R四个文件中调用百度地图服务的URL #然后打开命令行窗口用下面的命令重新打包成baidumap_0.2.2.tar.gz再安装 # cd D:\software\R\Rsources\badbye-baidumap-bea3930 # Rcmd build badbye-baidumap-bea3930 #当前为V3.0版本接口文档,V2.0及以前版本自2019.6.18起新用户无法使用。 #老用户仍可继续使用V2.0及以前版本请求实现逆地理编码服务,为保障用户体验,建议您尽快迁移到V3.0版本。 #改动: #getBaiduMap.R #改为下面,新版本已经没有coordtype参数,URL也变了 ## set url url_head = "http://api.map.baidu.com/staticimage/v2?" url = paste0(url_head, "width=", width, "&height=", height, "¢er=",...
getCoordinate似乎出问题了 尝试了用英文、拼音都不行 ``` > getCoordinate('上海市',output='xml',formatted = T) longtitude latitude NA NA Warning messages: 1: In trans(result) : NAs introduced by coercion 2: In trans(result) : NAs introduced by coercion ```...
无法根据经纬度获取位置。输入经纬度后出来结果是乱码。请问有什么解决方案吗?感谢 lon = matrix(c(117.93780, 24.55730, 117.93291, 24.57745, 117.23530, 24.64210, 117.05890, 24.74860), byrow=T, ncol=2) > getLocation(lon[1, ], formatted = T) lon=117.9378;lat=24.5573 "{\"status\":240,\"message\":\"APP æœåŠ¡è¢«ç¦ç”¨\"}"
Up需要更新了
地理编码和逆地理编码3.0了,需要更新了
使用getbaidumap时,报readPNG出错,具体信息: 语句:q
安装显示出错
我在更新了所有它需要的包之后, 还是无法安装,我按照首页的方法安装, 它显示 Error: Failed to install 'baidumap' from GitHub: (converted from warning) installation of package ‘C:/Users/wang/AppData/Local/Temp/RtmpCSmkWQ/file30644b3f62cb/baidumap_0.2.2.tar.gz’ had non-zero exit status 我的R信息如下 version R version 3.6.0 (2019-04-26) os Windows 10...
 想问下老师,为什么用中文地址抓图,就报错,用坐标抓则可以 
抓取坐标出错
> getCoordinate(c('安阳高新技术产业开发区','安阳县安丰乡','安阳县白璧镇','安阳县柏庄镇','安阳县北郭乡','安阳县崔家桥镇','安阳县都里镇','安阳县韩陵镇','安阳县洪河屯乡','安阳县磊口乡','安阳县伦掌镇','安阳县吕村镇','安阳县马家乡','安阳县曲沟镇','安阳县善应镇','安阳县水冶镇','安阳县铜冶镇','安阳县辛村镇','安阳县许家沟乡','安阳县永和镇'), formatted = T) longtitude latitude 安阳高新技术产业开发区 NA NA 安阳县安丰乡 NA NA 安阳县白璧镇 NA NA 安阳县柏庄镇 NA NA 安阳县北郭乡 NA NA 安阳县崔家桥镇 NA NA 安阳县都里镇 NA NA 安阳县韩陵镇 NA...
Pls take a look at the pictures below and help me find the reason why the point moved. Is the zoom of ggmap and ggplot not matched well? or is...