Skip to content

[CHANGE REQUEST] Allow MultiPolygon types in the /operators/region endpoint #559

@jordibeen

Description

@jordibeen

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

  1. Try to return a GeoJSON representation of a MultiPolygon in the /operator/regions endpoint.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions