Query the capacity of street segments for area of interest.
POST {{baseUrl}}/capacity
Query the capacity of street segments. The output is formatted as a geojson. The street segments are returned as LineStrings and the capacity is a property of the geometry. Additionally, a confidence interval is given. The interval defines a lower and upper bound of the capacity, and is an indicator of the model confidence. 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
{"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":{"capacity":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"]}},{"id":"\u003cstring\u003e","type":"\u003cstring\u003e","geometry":{"type":"\u003cstring\u003e","coordinates":[["\u003cnumber\u003e","\u003cnumber\u003e"],["\u003cnumber\u003e","\u003cnumber\u003e"]]},"properties":{"capacity":"\u003cnumber\u003e","confidence_interval":["\u003cnumber\u003e","\u003cnumber\u003e"]}}]}