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

Feature: add digitizetheplanet to the protected areas #3789

Open
AntoineMarnat opened this issue Jan 8, 2024 · 3 comments
Open

Feature: add digitizetheplanet to the protected areas #3789

AntoineMarnat opened this issue Jan 8, 2024 · 3 comments

Comments

@AntoineMarnat
Copy link
Collaborator

See https://content.digitizetheplanet.org/fr/rules/api/

@florentcadot
Copy link
Contributor

If I understand correctly:
We should loop to perform GET /api/protectedarea/ incrementing the page query param until we get all the protected area from their API and perform individual GET /api/protectedarea/{id} call to get the geometry for each area.

I've just registered as an API user on digitize the planet, they don't seem to gave me an API Token, maybe I have to wait a bit or ask for it ? Not blocking for the moment as I can perform API call without it but I guess I'll be blocked because of rate limiting at one point.

One question:
How to be sure an area does not already exist ? A simple Regex on field 'title' from the local entity would be enough ? Or maybe checking if one geometry doesn't already exist ?

@brunobesson
Copy link
Member

@AntoineMarnat ?

@AntoineMUPEC
Copy link
Contributor

I do not know how to best handle possible doubles. Probably checking similar geometries is the best way.

I do not know if the board made direct contact with digitizetheplanet.

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

No branches or pull requests

4 participants