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
Key | Datatype | Required | Description |
---|---|---|---|
segid | string | (Required) Id of the street segment to search for | |
month | string | Month value (1-12) to further filter results | |
weekday | string | A three letter abbreviation of weekday (e.g. "MON", "TUE", ...) to further filter results | |
local_time | string | The time value formatted as "hh:mm" (e.g. "09:00", "09:30", ...) to further filter results |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"type":"\u003cstring\u003e","features":[{"id":"\u003cstring\u003e","type":"\u003cstring\u003e","geometry":{"type":"\u003cstring\u003e","coordinates":[["\u003cnumber\u003e","\u003cnumber\u003e"],["\u003cnumber\u003e","\u003cnumber\u003e"]]},"properties":{"occupancy":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"],"month":"\u003cnumber\u003e","weekday":"\u003cstring\u003e","local_time":"\u003cstring\u003e"}},{"id":"\u003cstring\u003e","type":"\u003cstring\u003e","geometry":{"type":"\u003cstring\u003e","coordinates":[["\u003cnumber\u003e","\u003cnumber\u003e"],["\u003cnumber\u003e","\u003cnumber\u003e"]]},"properties":{"occupancy":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"],"month":"\u003cnumber\u003e","weekday":"\u003cstring\u003e","local_time":"\u003cstring\u003e"}}]}