Description Usage Arguments Value Examples
get traffic status from amap,there are c(description,expedite,congested,blocked,unkown)
1 | getCoordinateA(address = NULL, city = "¸£ÖÝ", key = NULL)
|
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 |
A vector contains description,expedite,congested,blocked,unkown
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.