The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Geocoding and Reverse Geocoding Services are widely used to provide data about coordinate and location information, including longitude, latitude, formatted location name, administrative region with different levels. There are some package can provide geocode service such as tidygeocoder, baidumap and baidugeo. However, some of them not always provide precise information in China, and some of them is unavailable with upgrade backend API.
amapGeocode is built to provide high precise geocoding and reverse
geocoding service which powered by AutoNavi Map API service. Here are
two main functions to use are getCoord() which takes a
character location name as an input and getLocation() which
takes two numeric longitude and latitude values as inputs.
The getCoord() function extracts coordinate information
from input character location name and output the result as
tibble, XML or JSON (as list).
And the getLocation() function extracts location
information from input numeric longitude and latitude values and output
the result as tibble, XML or
JSON (as list). With the tibble format as
output, it’s highly readable and easy to be used to tidy
workflow.
Before start geocoding and reverse geocoding, please apply a AutoNavi Map API Key. Set
amap_key globally by following command:
Then get result of geocoding, by getCoord function.
The response we get from AutoNavi Map API is
JSON or XML. For readability, we
transform them to tibble,
by setting output argument as tibble by
default.
If anyone want to get response as JSON or
XML, just set output = "JSON" or
output = "XML". If anyone want to extract information from
JSON or XML, the result can further be
parsed by extractCoord.
extractCoord is created to get result as a tibble.
get result of reverse geocoding, by getLocation
function.
extractLocation is created to get result as a
tibble.
It’s very common for API upgrades to make the downstream application, like amapGeocode, to be unavailable. Feel free to let me know once it’s broken or just open an Issue.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.