get_latlon_china {EnvExpInd}R Documentation

transform the address information into the longitude and latitude

Description

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

Usage

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

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

## End(Not run)

[Package EnvExpInd version 0.1.0 Index]