1. Computing

Distance Calculator with Times

1. Introduction and Sample

This variant of my distance calculator not only displays the distances between each of your selected cities/locations, it also displays the expected travel time between those locations as well.

The following example displays the distances and times between a few places near Oklahoma City but the script can be easily adapted to work with any locations simply by entering the names of the locations and the distance and times between them into a multi-dimensional array. The script simply requires starting and destination cities to be selected and the distance and time between them will be extracted from the array and displayed.

Starting City:
Destination City:
Distance: Miles
Travel Time: Minutes

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.

Related Video
Visit Times Square
Windows Movie Maker Capture

©2013 About.com. All rights reserved.