| extractLocation | R Documentation |
Extract location from coordinate request
extractLocation(res, details = NULL)
res |
Required. Response object returned by [getLocation()] with 'output = "JSON"' or by the AutoNavi reverse-geocoding API. |
details |
Optional. Character vector describing which extended detail payloads to parse into list-columns. Valid values are '"pois"', '"roads"', '"roadinters"', and '"aois"'. Use '"all"' to include every detail payload. |
A 'tibble' describing the parsed reverse-geocode results. Each row corresponds to an element in the API response. When no data is present a single placeholder row filled with 'NA' values is returned.
[getLocation()]
## Not run:
raw <- getLocation(104.043284, 30.666864, output = "JSON")
extractLocation(raw, details = c("pois", "roads"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.