Go Back  FlyerTalk Forums > Travel&Dining > Travel Tools
Reload this Page >

Flying Fish: Mileage calculator tool available for download

Flying Fish: Mileage calculator tool available for download

Old Nov 11, 2003, 4:11 pm
  #1  
Original Poster
 
Join Date: Oct 2003
Location: Baltimore, MD
Programs: Delta murdered it. RIP WorldPerks
Posts: 337
Flying Fish: Mileage calculator tool available for download

The very latest!

I noticed the other day that this thread is over seven and a half years old! We've seen many changes - I think mostly for the worse - in our high-flying world since then. Unfortunately we haven't seen many changes at all in the Flying Fish program. And it's about time, but I've finally decided to throw my hat in the ring for its successor: greatcircles. I'm building it on the platform where it will be most useful to everyone - the Web.

You can see an early preview right here. Check this post for more info.

Flying Fish

You can get Flying Fish (for Windows) here.

An updated airport datafile (June 16, 2011) is available here. Just 'save as' into your Flying Fish program directory.

As always...

Feedback is always appreciated and desired, positive or negative, here or privately via Email. Thanks for your support!


Ryan M. Yadsko
[email protected]

Last edited by rmyadsk; Jul 12, 2011 at 11:12 am Reason: edited YET AGAIN with big news
rmyadsk is offline  
Old Nov 11, 2003, 5:27 pm
  #2  
 
Join Date: Jan 2002
Location: Once Seattle...then DC....now CDG.
Posts: 4,059
Very cool.

Neat little utility. Out of curiosity, where are you pulling the mileages from? The only reason I ask, is that when I'm trying miles in relation to UA flights, they are off by a few (usually less than 10 miles), wasn't sure which source you were using for the segments.

Anyways, very cool little utility. Thanks! I look forward to the updates.
mymiles2go is offline  
Old Nov 11, 2003, 5:46 pm
  #3  
FlyerTalk Evangelist
 
Join Date: Jan 2001
Location: NYC
Programs: AA EXP / LT PLT / 3MM, Marriott LT Gold
Posts: 35,363
Really neat -- thank you!

------------------
Vasant
vasantn is offline  
Old Nov 11, 2003, 5:50 pm
  #4  
 
Join Date: Aug 2003
Location: Boston, MA -- UA 1P; AA PLT; MR Silver
Posts: 116
Great tool. Many thanks!
sonofapilot is offline  
Old Nov 11, 2003, 6:47 pm
  #5  
Original Poster
 
Join Date: Oct 2003
Location: Baltimore, MD
Programs: Delta murdered it. RIP WorldPerks
Posts: 337
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Originally posted by mymiles2go:
Out of curiosity, where are you pulling the mileages from? The only reason I ask, is that when I'm trying miles in relation to UA flights, they are off by a few (usually less than 10 miles), wasn't sure which source you were using for the segments.</font>
The mileages are calculated on the fly with latitudes and longitudes from the airport codes the user enters. There are simply too many point-to-point distances to put into a database, so the geodesic ("great circle") distance is calculated. This allows for an infinite number of itineraries and various segments, and as long as lat/long information exists for both airports, a distance will be calculated. The lat/long information comes from DAFIF, the Digital Aeronautical Flight Information File. I'm not sure what the airlines use to generate their distances, and there is no "master list" of latitudes and longitudes for this purpose (I spent many hours looking) - DAFIF is the closest match.

One of the interesting things about developing the program is that I got a crash course in trigonometry while programming it. One widely accepted formula for calculating a geodesic distance is as follows:

Origin: lat1, lon1
Destination: lat2, lon2

theta = lon2 - lon1
dist = ((acos(sin(lat1) × sin(lat2) + cos(lat1) × cos(lat2) × cos(theta)))+pi) × 6371.2

The result is in kilometers, which is converted to statute miles. The value of PI is as accurate the the visual basic dbl (double) value allows; it is calculated when the application is loaded by 4# × Atn(1#).

I am very open to suggestions about formulae / calculations which will bring the totals in line with the airlines', as this is a primary goal of the program.

Another thing I would like suggestions on especially is the display of the itinerary summary at the bottom of the screen. I was thinking of a red/yellow/green scheme, like a traffic light, based on the cost per elite-qualifying mile. What would be a good way to display this (i.e. catch the user's attention but not be obnoxious or annoying)?

Coming soon: program-specific presets - i.e. select "Northwest Platinum Elite - first class" from a dropdown menu and class bonus becomes a 50% elite-qualifying bonus, status bonus becomes a 125% non-EQM bonus, etc.

------------------
Flying Fish: the ultimate Mileage Run tool?
rmyadsk is offline  
Old Nov 11, 2003, 9:16 pm
  #6  
 
Join Date: Apr 2002
Location: BOS/PVD
Posts: 461
There's a small section about calculating great circle distances in the FAQ of the Great Circle Mapper web site.

The main issue with using the formula you give above is, as the FAQ points out, the formula assumes the Earth is a perfect sphere, which is not quite the case. Thus the small error in calculating distances.
EnhancedByCO is offline  
Old Nov 11, 2003, 9:17 pm
  #7  
 
Join Date: Jun 2001
Location: SoCal
Posts: 116
Program will not run for me. I am getting the following error message:
Run-time error "3706":
ADO could not find the specified provider.
stevelb is offline  
Old Nov 11, 2003, 10:06 pm
  #8  
 
Join Date: May 2000
Location: Elk Grove, CA (SMF)
Programs: AS MVP Gold, IHG Spire, HH Gold
Posts: 241
Great, easy-to-use program!

I found a bug in the distance calculations:

It's showing 5714 miles from SLC-PSP, and 5999 miles from PSP-SMF. (PSP=Palm Springs, CA)

Thanks for this new tool!
MartinElk is offline  
Old Nov 11, 2003, 10:16 pm
  #9  
 
Join Date: May 2000
Location: Elk Grove, CA (SMF)
Programs: AS MVP Gold, IHG Spire, HH Gold
Posts: 241
One more quick one:

It did not recognize LHR as a valid airport, but LON did work.
MartinElk is offline  
Old Nov 12, 2003, 12:36 am
  #10  
Original Poster
 
Join Date: Oct 2003
Location: Baltimore, MD
Programs: Delta murdered it. RIP WorldPerks
Posts: 337
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Originally posted by MartinElk:
Great, easy-to-use program!

I found a bug in the distance calculations:

It's showing 5714 miles from SLC-PSP, and 5999 miles from PSP-SMF. (PSP=Palm Springs, CA)

Thanks for this new tool!
</font>
PSP must be used for a different airport. I will correct it.

Also I did not have time to put in LHR and several others I wanted to, IATA codes not included in the database I adapted those codes from. The "datamaker" script which I use to generate the master database is at home - while I am in Hawaii on business for a while.

Thanks,

Ryan

------------------
Flying Fish: the ultimate Mileage Run tool?
rmyadsk is offline  
Old Nov 12, 2003, 12:39 am
  #11  
Original Poster
 
Join Date: Oct 2003
Location: Baltimore, MD
Programs: Delta murdered it. RIP WorldPerks
Posts: 337
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Originally posted by stevelb:
Program will not run for me. I am getting the following error message:
Run-time error "3706":
ADO could not find the specified provider.
</font>
ADO is the method by which the program calls the database (via SQL queries). I would reocmmend downloading the Visual Basic 6 runtimes and reinstalling to ensure all files are up-to-date.

Try this link:

Visual Basic 6 runtimes from Microsoft

------------------
Flying Fish: the ultimate Mileage Run tool?
rmyadsk is offline  
Old Nov 12, 2003, 1:17 am
  #12  
 
Join Date: Jan 2002
Location: Once Seattle...then DC....now CDG.
Posts: 4,059
Going back to the mileage thing... I believe the vast majority of the airlines base thier mileages off of the IATA distances - I wonder if there is a downloadable distance database of city pairs. Might be a good way to minimize the differences.
mymiles2go is offline  
Old Nov 12, 2003, 3:51 am
  #13  
 
Join Date: Apr 1999
Location: Philippines
Programs: CebGo 5J, Hilton Diamond, IHG Platinum, Alaska 100K
Posts: 4,696
Great job on the beta.
davistev is offline  
Old Nov 12, 2003, 4:51 am
  #14  
 
Join Date: Jul 2002
Location: Cool,CA AA EXP, HH Diamond, 4 star Dad!
Posts: 543
Useful tool, its given me an interesting twist on a MR.. its also making it clear that my preferred MRs are less 'effort' but cost more than 2c a M
Brian-AAFlyer is offline  
Old Nov 12, 2003, 6:35 am
  #15  
MGL
 
Join Date: May 2002
Location: SEA
Programs: UA 1K MM, AS MVPG, SPG Plat, HHonors Diamond
Posts: 193
Most excellent!
MGL is offline  

Thread Tools
Search this Thread

Contact Us - Manage Preferences - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.