/geoChina

An R package for geocoding address by calling the Google or Baidu Geocoding API and coordinate conversions for WGS-84, GCJ-02 and BD-09 geodetic system

Primary LanguageRGNU General Public License v3.0GPL-3.0

geoChina

Build Status

An R package for geocoding address by calling the Google or Baidu Geocoding API and coordinate conversions for WGS-84, GCJ-02 and BD-09 geodetic system

Introduction

In China the digital maps use two main Geographic Coordinate Systems (GCSs), namely GCJ-02 and BD-09, rather than the well known WGS-84. geoChina provides functions for the mutual coordinate conversions between those three GCSs. Therefore, when geocoding address or reverse geocoding latitude/longitude location by calling either Google or Baidu Geocoding API, geoChina allows for inputting or outputting the coordinates in the GCS different from the one that Google or Baidu map uses. Besides, function for geocoding IP address is provided.

Installation

Install the latest development version from GitHub (devtools package is required):

if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("caijun/geoChina")

Contact

Bugs and feature requests can be filed to https://github.com/caijun/geoChina/issues. Pull requests are also welcome.