Query the capacity of street segments for a street segment.

GET {{baseUrl}}/capacity?segid=<string>

Query the capacity for a segment id. 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 Params

KeyDatatypeRequiredDescription
segidstring(Required) Id of the street segment to search for

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;features&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;geometry&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;coordinates&quot;:[[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;],[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]]},&quot;properties&quot;:{&quot;capacity&quot;:&quot;\u003cnumber\u003e&quot;,&quot;confidence_interval&quot;:[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]}},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;geometry&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;coordinates&quot;:[[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;],[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]]},&quot;properties&quot;:{&quot;capacity&quot;:&quot;\u003cnumber\u003e&quot;,&quot;confidence_interval&quot;:[&quot;\u003cnumber\u003e&quot;,&quot;\u003cnumber\u003e&quot;]}}]}