Query the occupancy of street segments for area of interest at a given time.
POST {{baseUrl}}/occupancy
Query the occupancy of street segments for area of interest 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 segments are returned as LineStrings and the occupancy, the confidence interval, and time attributes are encoded as geometry properties. All street segments intersecting with the area of interest are returned. Therefore, parts of the geometry may lie outside of the pre-defined area.
Request Body
{"geojson"=>{"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"=>{}}]}, "month"=>"<number>", "weekday"=>"<string>", "local_time"=>"<string>"}
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":{"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"}}]}