getGeoCoding: Get longitude and latitude through Baidu map API

Description Usage Arguments Details Value Examples

View source: R/getGeoCoding.R

Description

Get longitude and latitude through Baidu map API

Usage

1
2
3
4
5
6
7
8
getGeoCoding(
  ak = NULL,
  address = NULL,
  city = NULL,
  ret_coordtype = "gcj02ll",
  sn = NULL,
  output = "json"
)

Arguments

ak

user must register their ak (key) before use.

address

the address to parse

city

the city of address

ret_coordtype

the type of coordinate

sn

not necessary

output

must by json

Details

[Detail document reference](https://lbsyun.baidu.com/index.php?title=webapi/guide/webservice-geocoding)

Value

Longitude and latitude of address

Examples

1
getGeoCoding(ak = '92RLPSx3RqhlaNGjGTdzL2f2iqHmgl4f', address = 'beijing')

sugs01/baiduMapAPI documentation built on Dec. 23, 2021, 6:40 a.m.