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

Add boundaries to S2S database #112

Open
bpstewar opened this issue Feb 6, 2025 · 0 comments
Open

Add boundaries to S2S database #112

bpstewar opened this issue Feb 6, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bpstewar
Copy link
Collaborator

bpstewar commented Feb 6, 2025

Describe the solution you'd like
We need to provide users with access to the official World Bank boundaries for use in the aggregation process. This would require updating the database with the boundaries (ADM0, ADM1, and ADM2), and updating the API to allow for querying and extracting.

The API endpoint should deliver a geojson of the boundaries based on input ISO3 code and ADM level.

Describe alternatives you've considered
The boundaries will be available in other locations (ie - World Bank's Data Catalog), so this is not an absolute necessity.

Additional context
This will NOT require the API to do any aggregation in the backend, it is just a method to fetch the boundaries. I would expect the general process to look something like this (in Python)

import s2s_client as s2s

iso3 = 'KEN'
adm_level = 'ADM1'

# ken_boundaries should now be a GeoDataFrame
ken_boundaries = s2s.fetch_admin_boundaries(iso3, adm_level)

# fetch and summarize the h3 results for the desired geodaatframe
ken_population = s2s.get_summary(gdf, 'intersects', 'ntl', geometry=None)
@bpstewar bpstewar added the enhancement New feature or request label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants