extractCoord: Extract coordinate from location request

View source: R/getCoord.R

extractCoordR Documentation

Extract coordinate from location request

Description

Extract coordinate from location request

Usage

extractCoord(res)

Arguments

res

Required.
Response from getCoord.

Value

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

See Also

getCoord

Examples

## Not run: 
library(dplyr)
library(amapGeocode)

# Before the `getCoord()` is executed,
# the token should be set by `option(amap_key = 'key')`
# or set by key argument in `getCoord()`

# Get geocode as a XML
getCoord("IFS Chengdu", output = "XML")  |>
  # extract geocode regions as a data.table
  extractCoord()

## End(Not run)


womeimingzi11/amapGeocode documentation built on Nov. 5, 2023, 6:24 a.m.