Flying Fish: Mileage calculator tool available for download
#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]
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
#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.
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.
#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>
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>
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?
#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.
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.
#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!
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!
#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>
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>
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?
#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>
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>
Try this link:
Visual Basic 6 runtimes from Microsoft
------------------
Flying Fish: the ultimate Mileage Run tool?
#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.