Message Boards Message Boards

Make an interactive shortest tour of countries in Eurasia and Africa

I have a graph of countries in Eurasia for a computational essay and I am building a Manipulate. I am wondering how to save definitions of FindShortestPath for a series of countries and plot a path with GeoGraphPlot through the countries.
I have some code with DynamicModule I can't seem to make work based on the documentation example for a tour through Europe for FindShortestTour and a neat example in the documentation for FindShortestTour of a path through every country on a globe.
I am wondering how to make a Manipulate where the user selects a starting country and a destination country and highlight the shortest path with GeoGraphPlot or GeoGraphPlot where the graph vertices are the centers of the countries from

CountryData[#,"CenterCoordinates"]&

as a GeoPosition and the weights are from GeoDistance.

POSTED BY: Peter Burbery
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract