Description Usage Arguments Value Examples
Query API for available Event, Shape or Sensor Network Data
1 | available_data(type, location = NULL, date_begin = NULL, date_end = NULL)
|
type |
A character string, one of 'event', 'shape' or 'sensor' |
location |
('type = "event"' and 'type = "shape"' only) filter data sets with a valid geojson polygon |
date_begin |
('type = "event"' only) filter data sets for those that begin on or after this date specified in 'YYYY-MM-DD' format |
date_end |
('type = "event"' only) filter data sets for those that end on or before this date specified in 'YYYY-MM-DD' format |
A data.table object
1 2 3 4 5 6 7 8 9 10 11 12 13 | # can use filters
loc = '{"type":"Polygon",
"coordinates":[
[[-87.58695602416992,41.79224063145134],
[-87.58695602416992,41.7996633276003],
[-87.5745964050293,41.7996633276003],
[-87.5745964050293,41.79224063145134],
[-87.58695602416992,41.79224063145134]]]}'
event <- available_data(type = "event", date_begin = "2015-10-20", location = loc)
shapes <- available_data(type = "shape")
sensor <- available_data(type = "sensor")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.