2026Fullstack Software AI Engineer
Waypoint AI
Conversational trip planner for El Salvador: the model turns the user's sentence into constraints and a deterministic engine enforces them, over real places and real distances.
PythonFastAPIPostgreSQLPostGISClaude AINext.jsLeafletVercelDocker


The start screen: describe the trip in one sentence and Waypoint AI builds the route
1 / 2Problem
Planning a multi-day trip means cross-referencing places, distances and opening hours by hand; a language model sometimes ignores “I hate early mornings” and returns places that may not exist.
Solution
The problem is split in two: the model translates the sentence into constraints and a deterministic engine enforces them.
- Measurable: an automatic check tells whether the itinerary respects every constraint.
- Whatever could not be satisfied comes back as a violation with its magnitude.
- OpenStreetMap catalog in PostGIS and a single OpenRouteService matrix call per itinerary.
- A geometric invariant discards cells where the road is shorter than the straight line.
Outcome
25 of 26 benchmark cases satisfy every hard constraint, and the public demo is live.
- Zero invented places over 321 generated stops.
- Zero out of 240 stops outside opening or daylight hours.
- Detour factor and speeds measured against 812 real pairs, not picked by feel.
- Catalog of 5,786 active places; 743 backend tests and 55 on the frontend.
Read the full storyHide the full story1 min read
- Problem
- Planning a multi-day trip means cross-referencing places, distances and opening hours by hand. Handing the job straight to a language model fails exactly where it matters: “I hate early mornings” becomes a suggestion it sometimes ignores, and the places it returns may not exist.
- Solution
- Split the problem in two: the model translates the natural-language request into constraints, and a deterministic engine enforces them. That makes it measurable: given a set of constraints you can check automatically whether the itinerary respects them, and whatever could not be satisfied travels back in the response as a violation with its magnitude instead of being hidden. The catalog comes from OpenStreetMap and is queried with PostGIS; distances come from a single OpenRouteService matrix call per itinerary, cached per pair, because the quota the response header reports is a tenth of the one the plan table advertises. A geometric invariant discards cells where the road route measures less than the straight line: three stops snapped to the same road node were returning zero kilometres flagged as a real measurement.
- Outcome
- Across a 26-case benchmark: 25 satisfy every hard constraint, zero invented places over 321 generated stops and zero out of 240 stops outside opening or daylight hours. The detour factor (1.45) and the speeds (35 to 62 km/h depending on leg length) were measured against 812 real pairs rather than picked by feel. Catalog of 5,786 active places, 743 backend tests and 55 on the frontend. Public demo live.