Skip to content

refactor(proto): replace raw lat/lng in PizzintLocation with GeoCoordinates#811

Open
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:refactor/pizzint-geocoordinates
Open

refactor(proto): replace raw lat/lng in PizzintLocation with GeoCoordinates#811
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:refactor/pizzint-geocoordinates

Conversation

@NewCoder3294
Copy link
Contributor

Summary

  • Replace raw double lat (field 12) and double lng (field 13) in PizzintLocation proto message with a structured GeoCoordinates location (field 14) from worldmonitor.core.v1
  • Reserve old field numbers (12, 13) and field names ("lat", "lng") for wire compatibility
  • Update server handler (get-pizzint-status.ts) to construct GeoCoordinates objects from upstream API lat/lng values
  • Update client adapter (src/services/pizzint.ts) to read location.latitude/location.longitude instead of lat/lng
  • Update generated TypeScript types (server + client) and OpenAPI specs (JSON + YAML) to reflect the new schema

Closes #189

Test plan

  • Verify buf lint passes on the updated proto
  • Verify make generate produces matching TypeScript types
  • Verify PizzINT dashboard loads correctly and location coordinates display on the map
  • Verify existing API consumers handle the new location object field gracefully (old lat/lng fields are no longer present in responses)

🤖 Generated with Claude Code

…inates

Replace the raw `double lat` (field 12) and `double lng` (field 13) fields
in PizzintLocation with a structured `GeoCoordinates location` (field 14)
message from worldmonitor.core.v1. Old field numbers 12, 13 and names
"lat", "lng" are reserved for wire compatibility.

Updates server handler, client adapter, generated TypeScript types, and
OpenAPI specs to use location.latitude / location.longitude.

Closes koala73#189

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 2, 2026

@NewCoder3294 is attempting to deploy a commit to the Elie Team on Vercel.

A member of the Team first needs to authorize it.

@koala73 koala73 added Not Ready to Merge PR has conflicts, failing checks, or needs work Low Value Trivial, unnecessary, or not aligned with project needs labels Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Low Value Trivial, unnecessary, or not aligned with project needs Not Ready to Merge PR has conflicts, failing checks, or needs work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use GeoCoordinates type for PizzintLocation and standardize lat/lng naming

2 participants