Anti-zigzag optimization

Anti-zigzag optimization: your day organized by real proximity

AistoTrip rearranges the stops of each day from your accommodation so you don't cross the city three times, and tells you how many minutes you save before applying the change.

The problem with an itinerary is not usually what to see, but in what order to see it.

When AistoTrip generates your itinerary, each day is already grouped by geographical proximity: stops in the same area fall on the same day. But plans change — you add a museum, replace a restaurant, move a visit — and the day gets scrambled. That's where the 'Optimize route' button in each day's menu comes in.

By pressing it, the app calculates a new order starting from your confirmed accommodation: first a nearest-neighbour pass (always go to the closest remaining stop) and then a 2-opt pass that undoes the crossings left loose by the first pass. Meals are not pushed to the end of the day: lunch stays interspersed in its midday slot and dinner at the close of the day.

Before changing anything, it shows you a preview with the travel minutes of the current day, those of the reordered day, and the savings. You decide: 'Apply' or 'Leave it as is'. If you apply, the actual travel legs between stops are recalculated with Google Directions according to your mode of transportation, and the day's schedules are readjusted.

The stops you have blocked do not enter the geometric reordering: if you have fixed something because you have entry at a specific time or a reservation, the optimizer does not include them in the mix.

Benefits of Anti-zigzag optimization

See the savings before deciding

the preview tells you the minutes you cut, comparing the day as it is with the reordered day. No surprises or silent changes.

Order by real distance, not by intuition

nearest-neighbour plus 2-opt on the actual coordinates of each stop, with your accommodation as the starting point of the day.

Meals are on schedule

eating doesn't become the last stop of the day. Lunch is interspersed at noon and dinner at the end, even if everything else is rearranged.

Respects what you have booked

timed entries, reservations, or that visit you absolutely want to do first thing remain outside of the rearrangement.

Truly recalculated travel legs

after applying, the times between stops are requested again from Google Directions with your mode of transport, and the day's schedules readjust automatically.

One button, not a spreadsheet

it's in the day's menu, within the plan. You don't have to redo the itinerary or move stops one by one.

Nora Beltrán

Stop crossing the city from end to end

Create your itinerary on AistoTrip and arrange each day by real proximity with a single touch.

Optimize the Daily Route: Itinerary Ordered by Actual Proximity