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

Hex compatable endpoints #111

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Conversation

Gabe-Levin
Copy link
Collaborator

@Gabe-Levin Gabe-Levin commented Jan 20, 2025

Add Hex ID Endpoints

What I Changed:

  • Added new methods to StatsTable to handle direct h3 AOI inputs
  • Added new endpoints:
    • /summary_by_hexids: Get statistics by H3 IDs
    • /aggregate_by_hexids: Aggregate statistics across H3 IDs
  • Added test coverage for new endpoints

How to Test:

  • Run tests with pytest
  • Or run server locally and make manual API requests through the http://localhost:8000/docs url

@Gabe-Levin Gabe-Levin temporarily deployed to Space2Stats API Dev January 20, 2025 15:48 — with GitHub Actions Inactive
Copy link

github-actions bot commented Jan 20, 2025

PR Deployment Details:
🚀 PR deployed to https://lrbgua664j.execute-api.us-east-1.amazonaws.com/

@Gabe-Levin Gabe-Levin temporarily deployed to Space2Stats API Dev January 21, 2025 14:57 — with GitHub Actions Inactive
@Gabe-Levin Gabe-Levin changed the title [WIP] Hex compatable endpoints Hex compatable endpoints Jan 21, 2025
"""Retrieve Statistics from a GeoJSON feature.

Parameters
----------
aoi : GeoJSON Feature
The Area of Interest, either as a `Feature` or an instance of `AoiModel`

spatial_join_method : ["touches", "centroid", "within"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gabe-Levin any reason to remove the description for these methods?

@andresfchamorro andresfchamorro merged commit 174e378 into main Feb 6, 2025
3 checks passed
@andresfchamorro andresfchamorro deployed to Space2Stats API Dev February 6, 2025 21:11 — with GitHub Actions Active
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.

2 participants