Distance Calculator with Times and Costs
1. Introduction and Sample
Join the Discussion
More of this Feature
This variant of my distance calculator not only displays the distances and times between each of your selected cities/locations, it also displays the cost of travelling between those locations as well. In fact if you don't want times and costs but want two other values based on the two selected locations then you can just change the field descriptions from time and cost to whatever it is that you do want.
The following example displays the distances, times, and costs between ??? but the script can be easily adapted to work with any locations simply by entering the names of the locations and the distance, times, and cost of travelling between them into a multi-dimensional array. The script simply requires starting and destination cities to be selected and the distance, time, and cost of travel between them will be extracted from the array and displayed.
If you want to add a copy of this time/distance calculator to your site then the first thing you need to do is to get the HTML and Javascript.

