Skip to content

fix(api): treat RV Trip Wizard placeholder coordinates as no location - #20

Merged
Backroads4Me merged 2 commits into
mainfrom
fix/stop-map-placeholder-coords
Nov 5, 2026
Merged

Backroads4Me merged 2 commits into
mainfrom
fix/stop-map-placeholder-coords

Conversation

@Backroads4Me

Copy link
Copy Markdown
Owner

Stop-page maps for the Foretravel Rally trip centered on the Gulf of Guinea: RV Trip Wizard writes -1 for coordinates it could not resolve, and the sentinel passed every range check into PostGIS.

  • Parser drops a coordinate pair when either value is -1 and warns at preview; apply then fails 422 instead of storing the placeholder.
  • Public stop-detail and trip-segments reads report placeholder pairs as no location, so the stop page hides the map instead of misleading.
  • New unit tests (api/tests/test_coordinate_sentinels.py); full suite 129 passed, ruff clean at d9879cc.

The two production rows (The Ridge Outdoor Resort, Brushy Mountain State Penitentiary) were corrected directly in the OCI database; the live pages now render the true Sevierville/Petros TN locations.

RV Trip Wizard writes -1 into latitude/longitude cells it could not
resolve. -1 is in range, so the sentinel reached PostGIS as a POINT in
the Gulf of Guinea and every stop-page map for the affected trip
centered on the ocean instead of the campground.

The parser drops a coordinate pair when either value is the -1
placeholder and warns during preview; public stop-detail and
trip-segments reads report placeholder pairs as missing so the map
hides instead of misleading.
@Backroads4Me
Backroads4Me merged commit c72e79e into main Nov 5, 2026
2 checks passed
@Backroads4Me
Backroads4Me deleted the fix/stop-map-placeholder-coords branch November 5, 2026 11:12
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.

1 participant