maps_trans2gcj02 | R Documentation |
Coordinate transformation. Obtain the coordinate. Get the address.
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)
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 |
Visit https://lbs.amap.com/api/webservice/summary for more infomation. NOTE: These functions only supoort chinese address.
coordinates of amap(GCJ-02). Or the Chinese address.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.