[CHANGE REQUEST] Allow MultiPolygon
types in the /operators/region
endpoint
#559
Milestone
MultiPolygon
types in the /operators/region
endpoint
#559
API Version
1.5.0
Summary
The
/operator/regions
endpoint only supports returning a GeoJSON representation of aPolygon
. Ideally, it should allow forMultiPolygon
types too, as these are also part of the official GeoJSON spec.Expected Behavior
We expect the
/operator/regions
endpoint (wiki) to work with a GeoJSON representation of aMultiPolygon
without any issues.Current Behavior
The current behavior is that the
serviceArea
field in the/operators/region
endpoint only works for a singularPolygon
, not aMultiPolygon
.Possible Solution
Modifying the existing endpoint to allow for
MultiPolygon
types to be returned too.Steps to Reproduce
MultiPolygon
in the/operator/regions
endpoint.MultiPolygon
correctly.Context (Environment)
We've started returning
MultiPolygons
to our TOMP integration, but the specification does not allow for it. This limitation is causing us to implement custom workarounds to handleMultiPolygon
types.The text was updated successfully, but these errors were encountered: