Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added postal area update route api #506

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antoineludeau
Copy link
Member

@antoineludeau antoineludeau commented Dec 13, 2024

Context

The postal areas data is changing and needs to be updated in our database

Enhancement

This PR adds :

  • a new API route PUT /postal-area/district/cog/${cog}

body structure :

[
    {
        "postalCode": "postal code 1",
        "geometry": {
            "type": "MultiPolygon",
            "coordinates": [...]
        }
    },
  {
        "postalCode": "postal code 2",
        "geometry": {
            "type": "MultiPolygon",
            "coordinates": [...]
        }
    },
]

This route will replace the postal areas for an entire district.

@antoineludeau antoineludeau self-assigned this Dec 13, 2024
@antoineludeau antoineludeau marked this pull request as ready for review December 16, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant