Query the occupancy of a street segment for all available time intervals.
GET {{baseUrl}}/occupancy_table?segid=<string>
Query the occupancy of a street segment for all available time intervals. The occupancy depends on month, weekday and local time. The output can be used to present the occupancy in a two-dimensional heatmap. It is formatted as a geojson. The street segments are returned as LineStrings. All street segments intersecting with the area of interest are returned. Therefore, parts of the geometry may lie outside of the pre-defined area. The occupancy values are encoded as geometry properties - the entries
attribute contains a list of occupancy values with additional information, i.e. the confidence interval, the weekday, and the local time.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
segid | string | (Required) Id of the street segment to search for |
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":{"entries":[{"occupancy":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"],"weekday":"\u003cstring\u003e","local_time":"\u003cstring\u003e"},{"occupancy":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\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":{"entries":[{"occupancy":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"],"weekday":"\u003cstring\u003e","local_time":"\u003cstring\u003e"},{"occupancy":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"],"weekday":"\u003cstring\u003e","local_time":"\u003cstring\u003e"}]}}]}