get_latlon_china: transform the address information into the longitude and...

Description Usage Arguments Value Author(s) Examples

View source: R/get_latlon_china.R

Description

Based on the Baidumap api, get_latlon_china function coverts the detailed address into the longitude and latitude

Usage

1
get_latlon_china(data, add_var = "address", api_key = "")

Arguments

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

Value

two clomuns (lon and lat) was added into the origin data.frame

Author(s)

Bing Zhang, https://github.com/Spatial-R/EnvExpInd

Examples

1
2
3
4
## Not run: 
 get_latlon_china(wuhan.sem,add_var = "add",api_key = "sksksksksksk")

## End(Not run)

Spatial-R/EnvExpInd documentation built on Oct. 24, 2020, 1:44 a.m.