Skip to content

[Sprint 7d]: Coordinates to Region Mapping#84

Open
ajbarba01 wants to merge 3 commits intomainfrom
coord_to_region
Open

[Sprint 7d]: Coordinates to Region Mapping#84
ajbarba01 wants to merge 3 commits intomainfrom
coord_to_region

Conversation

@ajbarba01
Copy link
Collaborator

Sprint

[Sprint 7d]: Coordinates to Region Mapping #75

Who worked on this sprint?

Zander
Chiara

Who did what on this sprint?

We both worked together on all features.

Features Implemented

Raycasting Algorithm to check the MA region of a lat/long coordinate
Region field in schools table
Automatic updating of region through upload flow and location editing flow

New files created

src/lib/region-finder.ts

Existing files modified

src/lib/schema.ts
src/app/api/upload/route.ts
src/app/api/schools/route.ts
src/app/api/schools/[name]/route.ts

Acceptance Criteria

  1. All schools in the database have associated regions
  2. Function addresses edge cases mentioned and any others that are discovered
  3. Function is invoked when coordinates for a school change
  4. UI matches Figma exactly
  5. Code runs locally without errors and builds successfully
  6. Merge via PR

Testing: how did you test?

We tested by both editing schools locations and by deleting and re-uploading school data to ensure that both routes result in the correct regions for schools.

Features Not Implemented/Incomplete

N/A

Bugs Discovered

N/A

Screenshots:

N/A -- all backend

Tag Dan and Shayne

@danglorioso @shaynesidman

@vercel
Copy link

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mhd Ready Ready Preview, Comment Mar 25, 2026 7:11pm

@danglorioso danglorioso linked an issue Mar 25, 2026 that may be closed by this pull request
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sprint 7d]: Coordinates to Region Mapping 🗾 - Chiara & Zander

3 participants