extractLocation: Extract location from coordinate request

Description Usage Arguments Value See Also Examples

View source: R/getLocation.R

Description

Extract location from coordinate request

Usage

1

Arguments

res

Required.
Response from getLocation.

Value

Returns a data.table which extracts detailed location information from results of getLocation. See https://lbs.amap.com/api/webservice/guide/api/georegeo for more information.

See Also

getLocation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
library(dplyr)
library(amapGeocode)

# Before the `getLocation()` is executed,
# the token should be set by `option(amap_key = 'key')`
# or set by key argument in `getLocation()`
# Get reverse-geocode as a XML
getLocation(104.043284, 30.666864, output = "XML") %>%
  # extract reverse-geocode regions as a table
  extractLocation()

## End(Not run)

amapGeocode documentation built on April 19, 2021, 9:06 a.m.