maps: Map tools

maps_trans2gcj02R Documentation

Map tools

Description

Coordinate transformation. Obtain the coordinate. Get the address.

Usage

maps_trans2gcj02(coord, type = "baidu", key = amap_key, output = "JSON")

maps_get_coords(address, key = amap_key, output = "JSON")

maps_get_address(coord, key = amap_key, output = "JSON")

maps_get_elevation(coord, key = google_key)

Arguments

coord

string, Latitude follows longitude, separated by commas.\n eg:"108.952560,34.204798"

type

"baidu", "gps"

key

amap key

output

output type, default is JSON.

address

The Chinese address

Details

Visit https://lbs.amap.com/api/webservice/summary for more infomation. NOTE: These functions only supoort chinese address.

Value

coordinates of amap(GCJ-02). Or the Chinese address.

Examples

maps_get_coords("陕西师范大学")
maps_get_address("108.952560,34.204798")
maps_get_elevation("108.952560,34.204798")
maps_trans2gcj02("108.952560,34.204798", type = "baidu")

yanpd01/yyeasy documentation built on Dec. 1, 2022, 10:58 p.m.