getSearch: search something from amap

Description Usage Arguments Value Examples

Description

search something from amap,you can see http://lbs.amap.com/api/webservice/guide/api/trafficstatus/#inputtips

Usage

1
2
3
4
getSearch(shape = "polygon", location = "116.456299,39.960767",
  keywords = NULL, offset = 25, polygon = NULL, radius = 10000,
  city = NULL, key = amap_key, extensions = "base",
  types = "µØÃûµØÖ·ÐÅÏ¢")

Arguments

shape

character:defalut NULL ,should be rectangle/circle/NULL

location

character:location should be writtend like

keywords

should be 'json' or 'xml', the type of the result

offset

code of city.for examples fuzhou is 0591

polygon

polygon of location

radius

logical value, return the coordinates or the original results

city

character

key

amap key

extensions

xml or json

Value

A vector contains description,expedite,congested,blocked,unkown

Examples

1
2
3
4
5
6
## Not run: 
rectangel=matrix(c(118.784364,26.478515,119.892801,25.436929),byrow = T,nrow = 2) #big
rectangel=matrix(c(119.117295,26.201212,119.649092,25.840692),byrow = T,nrow = 2) #saml
df_grid=setcoordMTX(rectangel=rectangel,grid=2000,sep=';')

## End(Not run)

daigazi/bamapr documentation built on May 14, 2019, 3:28 p.m.