API Version
1.5.0
Summary
The /operator/regions endpoint only supports returning a GeoJSON representation of a Polygon. Ideally, it should allow for MultiPolygon 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 a MultiPolygon without any issues.
Current Behavior
The current behavior is that the serviceArea field in the /operators/region endpoint only works for a singular Polygon, not a MultiPolygon.
Possible Solution
Modifying the existing endpoint to allow for MultiPolygon types to be returned too.
Steps to Reproduce
- Try to return a GeoJSON representation of a
MultiPolygon in the /operator/regions endpoint.
- The endpoint won't process the
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 handle MultiPolygon types.
API Version
1.5.0
Summary
The
/operator/regionsendpoint only supports returning a GeoJSON representation of aPolygon. Ideally, it should allow forMultiPolygontypes too, as these are also part of the official GeoJSON spec.Expected Behavior
We expect the
/operator/regionsendpoint (wiki) to work with a GeoJSON representation of aMultiPolygonwithout any issues.Current Behavior
The current behavior is that the
serviceAreafield in the/operators/regionendpoint only works for a singularPolygon, not aMultiPolygon.Possible Solution
Modifying the existing endpoint to allow for
MultiPolygontypes to be returned too.Steps to Reproduce
MultiPolygonin the/operator/regionsendpoint.MultiPolygoncorrectly.Context (Environment)
We've started returning
MultiPolygonsto our TOMP integration, but the specification does not allow for it. This limitation is causing us to implement custom workarounds to handleMultiPolygontypes.