Description Usage Arguments Value Author(s) See Also Examples
It is a generic function to parse 'api_data' object ('xxx_geocode', 'xxx_revgeocode', or 'xxx_geohost'). You can mix 'api_data' objects of different subclasses for parsing, while the three 'api_data' parsers mentioned in 'seealso' can only parse objects of the same subclass.
1 | parse_api_data(x, ...)
|
x |
'api_data' objects, typically lists yieled by |
... |
other arguments to pass to the function. Refer to the functions in 'seealso' to know more about available optional arguments. |
a list comprising of tibble
s. Since the 'api_data'
objects may be of different subclasses, it is not reasonable to coerce the
results into a single data.frame. If the mixed parsing fails somewhere, you
will not get any result.
Yiying Wang, wangy@aetna.com
parse_geohosts()
, parse_geocodes()
and
parse_revgeocodes()
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# get a bunch of 'api_data' objects
library(asesgeo)
x1 <- geohost('<ip1>', output='raw')
x2 <- geocode('<addr1>', output='raw')
x3 <- revgeocode('<latlng1>', output='raw')
parse_api_data(c(x1, x2, x3))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.