geturl0: get search API url

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
geturl0(page = 1, shape = "around", location = "116.456299,39.960767",
  keywords = NULL, offset = 25, polygon = NULL, radius = 2000,
  city = NULL, mapkey = "71b002162d43fea08afd5b5e31b030af",
  types = "華靡華硊陓洘", extensions = "base")

Arguments

page

num

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

mapkey

amap key

extensions

xml or json

Value

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
rectangel=matrix(c(119.117295,26.201212,119.649092,25.840692),byrow = T,nrow = 2)
df_grid=setcoordMTX(rectangel=rectangel,grid=5000,sep=';')
amap_key='71b002162d43fea08afd5b5e31b030af'
url=geturl0(shape='polygon',polygon=df_grid[1,1],mapkey=amap_key,location=NULL,keywords='�瘞<U+3E36>??<U+393C><U+3E39>')
url=geturl0(shape='polygon',polygon=df_grid[1,1],mapkey=amap_key,location=NULL,keywords='�瘞衣�瑼日��踵隻�蜀�<U+3E66>')
url=geturl0(shape='polygon',polygon=df_grid[1,1],mapkey=amap_key,location=NULL,keywords='�祆�<U+3E65>',types='�行��踵�瘛�隡<U+383C><U+3E35>')
 
## End(Not run)

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