get_latlon_china {EnvExpInd} | R Documentation |
Based on the Baidumap api, get_latlon_china function coverts the detailed address into the longitude and latitude
get_latlon_china(data, add_var = "address", api_key = "")
data |
data frame, contains the address information |
add_var |
character, variable name in the data, which represents the address information |
api_key |
character, baidumap api key, seeing: http://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding |
two clomuns (lon and lat) was added into the origin data.frame
Bing Zhang, https://github.com/Spatial-R/EnvExpInd
## Not run:
get_latlon_china(wuhan.sem,add_var = "add",api_key = "sksksksksksk")
## End(Not run)