Query the occupancy of street segments for a street segment at a given time.

GET {{baseUrl}}/occupancy?segid=<string>&month=<integer>&weekday=<string>&local_time=<string>

Query the occupancy of a street segment at a given time. The occupancy (unit %) describes the expected number of occupied spots relative to the capacity. It depends on month, weekday and local time. The output is formatted as a geojson. The street segment is returned as LineStrings and the occupancy, the confidence interval, and time attributes are encoded as geometry properties.

Request Params

KeyDatatypeRequiredDescription
segidstring(Required) Id of the street segment to search for
monthstringMonth value (1-12) to further filter results
weekdaystringA three letter abbreviation of weekday (e.g. "MON", "TUE", ...) to further filter results
local_timestringThe time value formatted as "hh:mm" (e.g. "09:00", "09:30", ...) to further filter results

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;features&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;geometry&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;coordinates&quot;:[[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;],[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]]},&quot;properties&quot;:{&quot;occupancy&quot;:&quot;\u003cnumber\u003e&quot;,&quot;confidence_interval&quot;:[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;],&quot;month&quot;:&quot;\u003cnumber\u003e&quot;,&quot;weekday&quot;:&quot;\u003cstring\u003e&quot;,&quot;local_time&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;geometry&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;coordinates&quot;:[[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;],[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]]},&quot;properties&quot;:{&quot;occupancy&quot;:&quot;\u003cnumber\u003e&quot;,&quot;confidence_interval&quot;:[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;],&quot;month&quot;:&quot;\u003cnumber\u003e&quot;,&quot;weekday&quot;:&quot;\u003cstring\u003e&quot;,&quot;local_time&quot;:&quot;\u003cstring\u003e&quot;}}]}