Learn R Programming

remap (version 0.3.2)

get_city_coord: Get the location information of the city

Description

get_city_coord use Baidu API <http://developer.baidu.com/map/> to get the longtitude and latitude of the city

Usage

get_city_coord(city)

Arguments

city

a character object of the name of Chinese city,

Value

a vecctor of longtitude and latitude

Details

This function can transform the name of Chinese city Which can be a Chinese string or an English name,like Shanghai. This function is used BaiduAPI to get the geo information.

Examples

Run this code
# NOT RUN {
get_city_coord("Shanghai")
# }

Run the code above in your browser using DataLab