R語言amapGeocode包,getCoord函數(shù),從位置請求中提取坐標

R語言amapGeocode包,getCoord函數(shù),從位置請求中提取坐標

# remotes::install_github('womeimingzi11/amapGeocode')
# Sun Nov 15 11:45:35 2020 -

# 字符編碼:UTF-8
# R 版本:R x64 4.0.3 for window 10
# cgh163email@163.com
# 個人筆記不負責任
# —— 拎了個梨??
.rs.restartR()
rm(list=ls());gc()
# getCoord函數(shù),從位置請求中提取坐標
library(dplyr)
library(amapGeocode)

# Before the `getCoord()` is executed,
# the token should be set by `option(amap_key = 'key')`
# or set by key argument in `getCoord()`
options(amap_key='5**********fa00')
# Get geocode as a XML
getCoord('廣州塔')
# lng      lat formatted_address country province   city district township
# 1: 113.2644 23.12916      廣東省廣州市    中國   廣東省 廣州市       NA       NA
# street number citycode adcode
# 1:     NA     NA      020 440100
# Sun Nov 15 15:50:25 2020 --end
#
最后編輯于
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

友情鏈接更多精彩內(nèi)容