A coordinate pair needs a declared order, numeric range, coordinate system, and acquisition method. A prompt should not infer that the first number is latitude just because many examples use that order. A point may represent a building centroid rather than the service entrance, so an apparently precise map pin can still be operationally wrong. Store an accuracy or confidence field separately from the coordinate value. When a location is sensitive, pass only the precision necessary for the task and keep exact points out of public summaries. The application validates coordinate fields before they enter route calculations.
Location prompts: validate coordinates, units, and precision
Operational case
Quartz receives a depot point in latitude-longitude order and an imported job point in longitude-latitude order. Both numeric values fall within legal global ranges, so a simple bounds check alone misses the swap. The import contract identifies each field name and coordinate system, and the application rejects the unlabeled pair. For J-47, the verified entrance point differs from the building centroid; the route uses the entrance. A manager-facing summary names the service area, while the exact customer location remains in the authorized dispatch tool.
Depot: latitude, longitude, declared coordinate system.
Imported J-47 pair: order missing -> reject until mapped.
J-47 route target: verified service entrance, not centroid.
Public summary: service area only.
Dispatch tool: exact point under access control.Performance and operating cost
Validating N coordinate records is O(N). Detecting swapped-but-in-range values may require contextual checks against known service bounds or a sample review, adding O(N) comparisons. The extra metadata is tiny compared with an incorrect trip. Reduce precision only in outputs where exact location is unnecessary; do not round the operational route input so far that the driver loses the correct entrance.
Common Mistakes
- Do not assume coordinate order from unlabeled numbers.
- Do not equate a building centroid with an approved entrance.
- Do not expose exact customer coordinates in a broad status message.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Locale-aware prompts: keep values typed until rendering
- Prompt privacy: send only the fields needed for the task
- Sensitive output gates: check the rendered answer before release
- Location prompts: resolve ambiguous addresses before routing
- Location prompts: label travel estimates and stale matrices
- Location prompts: compute stop-window feasibility before recommending
- Location prompts: review the map and gate dispatch effects
- Project: review a Quartz field-service route
- Location-aware prompt decisions
