Description Usage Arguments Value Author(s) Examples
View source: R/get_latlon_china.R
Based on the Baidumap api, get_latlon_china function coverts the detailed address into the longitude and latitude
1 | 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
1 2 3 4 | ## Not run:
get_latlon_china(wuhan.sem,add_var = "add",api_key = "sksksksksksk")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.