The route player is updated to allow full screen maps (with auto resize). In addition, it now has both the elevation/distance & elevation/time charts. To calculate the distance I used the following ActionScript method to find the distance between two geo points (see Hacking Google Maps for details):
private function distance(point1: Object,
point2 : Object) : Number {
var lat1 : Number;
var lat2 : Number;
var lon1 : Number;
var lon2 : Number;
if (point1 == null) return 0;
// convert degrees to radians
lat1 = point1.lat * Math.PI / 180.0;
lat2 = point2.lat * Math.PI / 180.0;
lon1 = point1.lon * Math.PI / 180.0;
lon2 = point2.lon * Math.PI / 180.0;
// radius of earth in Kilometers converted to miles
var radius : Number = 6378.1 * 0.621371192;
var latDist : Number = lat2 - lat1;
var lonDist : Number = lon2 - lon1;
var sinLatDist : Number = Math.sin(latDist/2.0);
var sinLonDist : Number = Math.sin(lonDist / 2.0);
var a : Number = sinLatDist * sinLatDist +
Math.cos(lat1) * Math.cos(lat2) *
sinLonDist * sinLonDist;
var c : Number = 2.0 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
var distance : Number = radius * c;
return distance;
}
Kenndey / Shannon / Hicks Roads Trail, Los Gatos, Sheldon Road Trail, Pebble Beach, 17 Miles Drive Trail, Los Gatos, San Jose Trail, Stevens Creek Reservoir Trail, Kennedy / Hicks Trail, St. Joseph Hills, Los Gatos Trail, Lake Lexington Trail

