Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_city_coord(),get_geo_position(),remap()无法正常使用 #47

Open
zheyiliu opened this issue Mar 26, 2020 · 0 comments
Open

get_city_coord(),get_geo_position(),remap()无法正常使用 #47

zheyiliu opened this issue Mar 26, 2020 · 0 comments

Comments

@zheyiliu
Copy link

zheyiliu commented Mar 26, 2020

(系统是win10,Rstudio中默认文字编码已经设置成了UTF-8,不知道是哪里的问题,求教求教)

  1. get_city_coord()无法正常使用

library(REmap)
options(remap.ak="-----my-key------")
get_city_coord('深圳')
[1] NA NA

  1. get_geo_position()可以支持汉字,但不能正常支持拼音

city_vec = c("北京","深圳","广州")
get_geo_position(city_vec)
lon lat city
12 116.413554 39.911013 北京
25 114.066112 22.548515 深圳
21 113.270793 23.135308 广州
get_geo_position('shenzhen')
[1] lon lat city
<0 行> (或0-长度的row.names)
Warning message:
In get_geo_position("shenzhen") : shenzhen not found.

  1. remap()也不能正常找到城市坐标

set.seed(125)
origin = rep("北京",10)
destination = c('上海','广州','大连','南宁','南昌', '拉萨','长春','包头','重庆','常州')
dat = data.frame(origin,destination)
out = remap(dat,title = "REmap实例数据",subtitle = "theme:Dark")
Warning message:
In get_geo_position(city_vec) :
北京 not found.上海 not found.广州 not found.大连 not found.南宁 not found.南昌 not found.拉萨 not found.长春 not found.包头 not found.重庆 not found.常州 not found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant