getCoordinateA: get Coordinate from amap

Description Usage Arguments Value Examples

Description

get traffic status from amap,there are c(description,expedite,congested,blocked,unkown)

Usage

1
getCoordinateA(address = NULL, city = "¸£ÖÝ", key = NULL)

Arguments

address

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

city

character:location should be writtend like

key

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

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
## rectangle
amap_key='71b002162d43fea08afd5b5e31b030af'
getCoordinateA(address='瑗块棬绔<U+393C><U+3E39>',city='fuzhou',key=amap_key)
MapBarBus$location=NA
for(i in 1:nrow(MapBarBus)){
  MapBarBus$location[i]=getCoordinateA(address=MapBarBus$station[i],city='绂忓çª<U+393C><U+3E65>',key=amap_key)
}


## End(Not run)

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