extractConvertCoord: Extract converted coordinates from a conversion response

View source: R/convertCoord.R

extractConvertCoordR Documentation

Extract converted coordinates from a conversion response

Description

Extract converted coordinates from a conversion response

Usage

extractConvertCoord(res)

Arguments

res

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

Value

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

See Also

[convertCoord()]

Examples

## Not run: 
raw <- convertCoord("116.481499,39.990475", coordsys = "gps", output = "JSON")
extractConvertCoord(raw)

## End(Not run)


amapGeocode documentation built on Jan. 19, 2026, 9:07 a.m.