Learn R Programming

amapGeocode (version 1.0.0)

extractConvertCoord: Extract converted coordinates from a conversion response

Description

Extract converted coordinates from a conversion response

Usage

extractConvertCoord(res)

Value

A `tibble` with columns `lng` and `lat`. When no data is present a single placeholder row filled with `NA` values is returned.

Arguments

res

Required. Response object returned by [convertCoord()] with `output = "JSON"` or by the AutoNavi coordinate conversion API.

See Also

[convertCoord()]

Examples

Run this code
if (FALSE) {
raw <- convertCoord("116.481499,39.990475", coordsys = "gps", output = "JSON")
extractConvertCoord(raw)
}

Run the code above in your browser using DataLab