the beauty of mapping


Kode Iklan Disini

Wednesday, October 7, 2009

The Traveling Tourist Problem


The most talked almost map of this calendar week has to endure Randy Olson's map showing a road-trip route across the United States, taking inward the pinnacle l major U.S. landmarks. Randy has genuinely created ii maps, 1 for the USA - Optimal Road Trip Across the U.S. together with 1 for Europe - the Optimal Road Trip Across Europe.

For both maps Randy took an arbitrary listing of the pinnacle landmarks to view together with so ready almost the work equally a Traveling Salesman problem. That is finding the shortest possible route that visits each landmark together with returns to the rootage starting point.

To solve the work Randy used the Google Maps API together with inward detail the Google Maps API Directions Service. This enabled him to uncovering the shortest routes betwixt each landmark. He so created his ain genetic algorithm to create a route visiting each of the landmarks so that the full distance traveled betwixt them is equally small-scale equally possible.


Over the years on nosotros accept posted a publish of maps that assistance to solve the perennial Traveler Salesman Problem (TSP). Among the most interesting solutions has been the Forio Route Optimizer.

The developers at Forio decided that the TSP was non challenging plenty together with so ready themselves the additional challenge of finding the quickest route taking into draw organization human relationship real-time traffic conditions. The resulting Forio Route Optimizer finds the quickest route, taking inward a publish of stops together with factoring inward the actual traffic on the roads.

The Route Optimizer comes amongst a publish of illustration routes inward San Francisco, including a majority crawl together with a sightseeing tour of the city. Forio has written-up an interesting weblog post on how the Route Optimizer was created, including a link to the source code of the Optimizer on GitHub.