UO API v1.1
Raw Sensor Data
Get Sensors
https://newcastle.urbanobservatory.ac.uk/api/v1.1/sensors/data/tabbed_xlsx/
Parameters
Location
Polygon (Well Known Binary)
Polygon that the sensor falls in
Field | Format | Example |
polygon_wkb |
Well-Known Binary (WKB) Format |
01030000000100000005000000ffffffff3f9..... |
Bounding Box
Bounding box the sensors fall inside off
Field | Format | Example |
bbox_p1_x |
Float |
-1.4 |
bbox_p1_y |
Float |
55.4 |
bbox_p2_x |
Float |
-1.2 |
bbox_p2_y |
Float |
56.1 |
Time Slice
Last n days
Selects Data from the last n days
Field | Format | Example |
last_n_days |
Integer |
3 |
Start & End Times
Time slice for which data in queried
Field | Format | Example |
starttime |
strftime "%Y%m%d%H%M%S" or "%Y%m%d" (http://strftime.org/) |
20150101 |
endtime |
strftime "%Y%m%d%H%M%S" or "%Y%m%d" (http://strftime.org/) |
20160101 |
Sensor Type
Sensor Type
Subset the sensors by the variables that they record
Field | Format | Example |
sensor_type |
Text |
NO2 |
Theme
Subset the sensor by their theme
Field | Format | Example |
theme |
Text |
Weather |
Sensor Broker
Subset the sensors by their broker/manufacturer
Field | Format | Example |
broker |
Text |
Emote Air Quality Sensor |
Data
Data Variable
Variables to retrieve data for
Field | Format | Example |
data_variable |
Text |
Temperature |
Example Use
https://newcastle.urbanobservatory.ac.uk/api/v1.1/sensors/data/tabbed_xlsx/?last_n_days=2&data_variable=NO2