extractConvertCoord: Extract converted coordinate points from convertCoord request

View source: R/convertCoord.R

extractConvertCoordR Documentation

Extract converted coordinate points from convertCoord request

Description

Extract converted coordinate points from convertCoord request

Usage

extractConvertCoord(res)

Arguments

res

Required.
Response from convertCoord.

Value

Returns a data.table which extracts converted coordinate points from request of convertCoord. See https://lbs.amap.com/api/webservice/guide/api/convert for more information.

See Also

convertCoord

Examples

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

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

# get result of converted coordinate system as a XML
convertCoord("116.481499,39.990475", coordsys = "gps", to_table = FALSE) %>%
  # extract result of converted coordinate system as a data.table
  extractConvertCoord()

## End(Not run)


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