Air France / KLM Virtual Airlines

  • Our Airline
    • Home
    • Login
    • NOTAMs
    • Airline News
    • Fleet Gallery
    • Image Gallery
    • Le Ciel Entre Nous
    • Online Flights
    • Logged In Users
    • Our Partners
    • Issue Tracker
  • Pilot's Lounge
    • Academy Graduates
    • Online Events
    • Flight Tours
    • Forums
  • Our People
    • Join Us
    • Pilot Roster
    • Pilot Locations
    • View Logbooks
    • Pilot Accomplishments
    • Century Club
  • ACARS
    • Live ACARS Map
    • Google Earth
    • ACARS Flights
    • Dispatch Schedule
    • Top Dispatchers
  • Statistics
    • Airline Totals
    • Flight Statistics
    • Online Statistics
    • Simulator Versions
    • Passenger Statistics
    • Landing Statistics
    • Optimal Landings
    • Challenging Runways
    • Server Statistics
  • Contact Us
    • Corporate Offices
    • Our Staff
    • Password Reset
    • Privacy Policy
    • Career Opportunities

DEVELOPMENT ISSUE #32 - Investigate Google Maps for route mapping
Reported by Luke Kolin (DVA043) on 07/08/2005 11:16 ET
Assigned To Luke Kolin (DVA043)
Issue Status Fixed on 07/13/2005 00:36 ET
Issue Priority Low
Airlines Air France Virtual, Delta Virtual Airlines
Security Public
Area Web Site
Issue Type Enhancement
Target Version 1.0
Issue Description Download the API and check it out, I'd much rather be able to use the satellite data.
14 ISSUE COMMENTS
Luke Kolin (DVA043)
07/08/2005 11:26 ET
I think we can do this. We might need to hack up the InsertJSTag to support inserting JS files from remote servers. We'll also need to call GBrowserIsCompatible() to ensure that we can display the right map - let's still use fallingRain for incompatible browsers.
Luke Kolin (DVA043)
07/08/2005 11:40 ET
Updated InsertJSTag and test case.
Luke Kolin (DVA043)
07/08/2005 11:48 ET
Added google maps API key to systemConfig.xml. We may need to generate two extra keys for golgotha.deltava.org and dva2006.deltava.org.
Luke Kolin (DVA043)
07/08/2005 11:48 ET
Updated dva_content.tld to support EL in name attribute.
Luke Kolin (DVA043)
07/08/2005 12:14 ET
To display the maps, you'll need to figure out the midpoint on the route. Use this function when translated from JavaScript to Java. You'll need to define a function somwhere to calculate midpoint - update GeoPosition to add a midpoint calculator.

LatLong.midPoint = function(p1, p2) {
var dLon = p2.lon - p1.lon;

var Bx = Math.cos(p2.lat) * Math.cos(dLon);
var By = Math.cos(p2.lat) * Math.sin(dLon);

lat3 = Math.atan2(Math.sin(p1.lat)+Math.sin(p2.lat),
Math.sqrt((Math.cos(p1.lat)+Bx)*(Math.cos(p1.lat)+Bx) + By*By ) );
lon3 = p1.lon + Math.atan2(By, Math.cos(p1.lat) + Bx);

return new LatLong(lat3*180/Math.PI, lon3*180/Math.PI);
}
Luke Kolin (DVA043)
07/08/2005 12:24 ET
I suspect that all of those values are in radians.
Luke Kolin (DVA043)
07/08/2005 12:38 ET
GeoPosition.midPoint(GeoPosition) complete, unit test complete.
Luke Kolin (DVA043)
07/08/2005 13:16 ET
Here's the old img tag:

<img src="http://maps.fallingrain.com/perl/map.cgi?x=620&y=365&kind=topo&lat=${pirep.airportD.latitude}&long=${pirep.airportD.longitude}&name=${pirep.airportD.name}&c=1&lat=${pirep.airportA.latitude}&long=${pirep.airportA.longitude}&name=${pirep.airportA.name}&c=1"
alt="${pirep.airportD.name} to ${pirep.airportA.name}" width="620" height="365" />
Luke Kolin (DVA043)
07/08/2005 13:41 ET
Here's the API documentation: http://maps.google.com/apis/maps/documentation/
Luke Kolin (DVA043)
07/08/2005 15:19 ET
Remove pirepRead.jsp from the JSPC precompilation task - we're going to be updating it a lot.
Terry Eshenour (DVA057)
07/09/2005 18:41 ET
Feature is neat, would be great if we had a map displaying real time DVA pilot flight activities.

Noted that the map is a graphics resource hog. Caused my system to choke.
Luke Kolin (DVA043)
07/09/2005 20:01 ET
When we get to testing the ACARS server, we will have the option of a ServInfo data feed, but I'll add a google map with locations of all of our pilots.
Luke Kolin (DVA043)
07/09/2005 20:19 ET
And since the google mapping interface is such a bear, I'll add the option to use the fallingrain maps.
Luke Kolin (DVA043)
07/12/2005 10:53 ET
Add MAPTYPE TINYINT UNSIGNED column at the end of PILOTS. Set default to 0.
 
Progress Spinner


Air France Virtual Airlines 2006 (Golgotha v12.4) Copyright © 2004 - 2026 Global Virtual Airlines Group. All Rights Reserved. (Build 993.1)
For flight simulation purposes only. Not a commercial website. In no way are we affiliated with Air France, KLM Royal Dutch Airlines, their affiliates or any other airline. All logos, images, and trademarks remain the property of their respective owners. Air France / KLM Virtual is a non-profit entity engaged in providing an avenue for flight simulation enthusiasts.