Re: Best way to...
- Posted by mattlewis (admin) Oct 17, 2010
- 1875 views
irv said...
I have a list of world airports, about 25,000. The list looks like this:
KLAX|-118.408074361323|33.9425346884195 KLBB|-101.822795013889|33.6636445206324 KLBE|-79.4047956708861|40.2759411160023 KLBF|-100.683662721014|41.1262132608696 KLBL|-100.959853220239|37.0442112733297 KLBO|-92.6537609065369|37.6472052018638 ...etc.
I know my current location from my gps. So, what is an efficient way to find the 3 closest airports to my current location? Extra points for using Euphoria 4.0 routines :)
There was a question on StackOverflow asking about this (not for euphoria, of course).
Geohashing looks like a way to attack it.
Matt