Description Usage Arguments Value See Also Examples
This is a wrapper of API result parsers for ipify, ipinfo and ipstack.
If geohost
yielded 'raw' results, you can then convert the
output lists to a structured data using this function.
1 2 | parse_geohosts(ghlst, output = c("country", "region", "city", "all"),
...)
|
ghlst |
a list comprising of lists of class 'ipify_geohost', 'ipinfo_geohost' or 'ipstack_geohost'. |
output |
character, 'country', 'region', 'city', 'all', or 'raw'. Refer to
|
... |
other arguments to pass to the function |
a tibble
parse_api_data
, geohost
,
geocode
, parse_geocode
;
revgeocode
, parse_revgeocode
1 2 3 4 5 | ## Not run:
ghlst <- geohost(c('<IP1>', '<IP2>'), output='raw') # yield a list
parse_geohosts(ghlst)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.