UO API v1.1

Raw Sensor Data

Get Sensors

GET

Parameters

Location
Polygon (Well Known Binary)
Polygon that the sensor falls in
FieldFormatExample
polygon_wkb Well-Known Binary (WKB) Format WKB uses 1-byte unsigned integers, 4-byte unsigned integers, and 8-byte double-precision numbers. The first byte indicates the byte order. 00 for big endian, or 01 for little endian. The next 4 bytes indicate the geometry type. Values from 1 to 7 indicate whether the type is Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection respectively. The 8-byte floats represent the co-ordinates. 01030000000100000005000000ffffffff3f9.....
Bounding Box
Bounding box the sensors fall inside off
FieldFormatExample
bbox_p1_x Float -1.4
bbox_p1_y Float 55.4
bbox_p2_x Float -1.2
bbox_p2_y Float 56.1
Sensor Region
Region sensor lies inside of
FieldFormatExample
subset_layer Text Post code Sectors
subset_shapes Text NE10 0
Data
Data Variable
Variables to retrieve data for
FieldFormatExample
data_variable Text Temperature
Time Slice
Last n days
Selects Data from the last n days
FieldFormatExample
last_n_days Integer 3
Start & End Times
Time slice for which data in queried
FieldFormatExample
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
Last n Records
select the number of latest records to retrieve
FieldFormatExample
last_n_records Integer 200
Sensor Type
Sensor Type
Subset the sensors by the variables that they record
FieldFormatExample
sensor_type Text NO2
Theme
Subset the sensor by their theme
FieldFormatExample
theme Text Weather
Sensor Broker
Subset the sensors by their broker/manufacturer
FieldFormatExample
broker Text Emote Air Quality Sensor

Example Use