14 ms·
I like this; I think your search algorithm for airports could use a little improvement. It looks like you may be prioritizing airport name matches over code mat
by BryantD 12y ago
I like this; I think your search algorithm for airports could use a little improvement. It looks like you may be prioritizing airport name matches over code matches: "SFO" puts San Francisco International Airport at the bottom.
- ssharp 12y agoAirport code should definitely take a higher priority. It would also be nice if you could use airport size as a sorter in your algorithm as well. For example, if I type in "Cleveland", I'm most likely looking for our main airpot, Hopkins International, but that's the last option that comes up. The other options are small, regional airports that only run private and charter.
- BryantD 12y agoI like the idea of airport size a lot. You could even generate that by hand with a list of the top 100 airports or something.
- toomuchtodo 12y agoTop airports: http://en.wikipedia.org/wiki/World's_busiest_airports_by_passenger_traffic http://en.wikipedia.org/wiki/World's_busiest_airports_by_pas... http://www.theguardian.com/news/datablog/2012/may/04/world-top-100-airports http://www.theguardian.com/news/datablog/2012/may/04/world-t...
- return0 12y agoThanks for the tip. I updated the sorting to be more reasonable