Learn R Programming

baidumap (version 0.2.2)

getPlace: Get place from query Take in query and city, return the informations

Description

Get place from query Take in query and city, return the informations

Usage

getPlace(place = NULL, city = "", page_size = 20, pages = Inf,
  scope = 1, verbose = TRUE)

Arguments

place

the place you want to search

city

define the city

Value

a data frame contains name, longtitude, latitude and address, as well as teleplhone number, if exist.

Examples

Run this code
# NOT RUN {
## colleges in beijing
bj_college = getPlace('<U+5927><U+5B66>', '<U+5317><U+4EAC>')
## Mcdonald's in shanghai
sh_mcdonald = getPlace('<U+9EA6><U+5F53><U+52B3>', '<U+4E0A><U+6D77>')
# }

Run the code above in your browser using DataLab