Query the occupancy of street segments for area of interest for all available time intervals.
POST {{baseUrl}}/occupancy_table
Query the occupancy of street segments for area of interest 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 Body
{"type"=>"<string>", "features"=>[{"type"=>"<string>", "geometry"=>{"type"=>"<string>", "coordinates"=>[[["<number>", "<number>"], ["<number>", "<number>"]], [["<number>", "<number>"], ["<number>", "<number>"]]]}, "properties"=>{}}, {"type"=>"<string>", "geometry"=>{"type"=>"<string>", "coordinates"=>[[["<number>", "<number>"], ["<number>", "<number>"]], [["<number>", "<number>"], ["<number>", "<number>"]]]}, "properties"=>{}}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
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"}]}}]}