Description Usage Arguments Value Author(s) See Also Examples
This is a wrapper of API result parsers for google, baidu and gaode map.
It can serve as a subsequent handler to convert 'raw' results yielded
using geocode()
to a structured data.frame.
1 2 | parse_geocodes(gclst, output = c("latlng", "latlngc", "latlnga", "all"),
gcs = NULL, idf = TRUE, ...)
|
gclst |
a list comprising of lists of class 'google_geocode', 'baidu_geocode' or 'gaode_geocode', subclasses of 'api_data'. |
output |
character, 'latlng', 'latlngc', 'latlnga', or 'all'. Default
'latlng'. Refer to |
gcs |
character, the geo-coordinate system for output. 'WGS-84', 'GCJ-02', or 'BD-09'. Default NULL, which indicates that no coordinate conversion will be conducted on the results. |
idf |
logical, whether generate an identifier column 'idf' in the output. Default TRUE. |
... |
optional arguments. Generic args:
API-specific args:
|
a tibble
Yiying Wang, wangy@aetna.com
parse_api_data()
, geocode()
,
revgeocode()
, parse_revgeocodes()
;
geohost()
, parse_geohoss()
1 2 3 4 5 | ## Not run:
gc <- geocode(c('<addr1>', '<addr2>'), api='google', output='raw')
parse_geocodes(gc, output='all')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.