PHP Lat,Long to nearest major airport

Create a PHP page that receives $_Get parameters for lat and lon of the user's location.? Use the GeoIP function? ? to calculate the distance between two GPS points, and loop through all the airport codes in the file list (below), calculating the distance, and return the airport code to the closest airport.

[url removed, login to view]

has a directory listing hundreds of airport codes. These 4-letter codes are those airports that have hourly weather reports.

Save that displayed list of stations with view Source. Write a script to strip out everything except the list of 4-letter codes, and save.? Its about 7280 codes.

http:/ /[url removed, login to view] ? ? ?

is an? online services that, given an airport code, will return the Latitude and Longitude of that airport.? ? ? ( and I want the timezone too.)

Eg.? CYEG is Edmonton International, and its location is at longitude is 113° 34’ 47?? W,? latitude 53° 18’ 35?? N

Automate the extraction of lat,long locations for each airport code in the 7280 list.

The method I suggest is: ? parse a code like CYEG, to find letter "Y"? and go to the page

http:/ /[url removed, login to view]

then RegEx search to match YEG, then follow the nearby link to

http:/ /[url removed, login to view]

And that page contains the info I need.? ? Build a file containing 4 columns, 7280ish rows.? ?

airport-code, latitude, longitude,? timezone

Please convert latitude and longitude from format

53° 18’ 35?? N? 113° 34’ 47?? W? ?

into this format:

[url removed, login to view],? ? 53.3097

Here's how 113° 34’ 47?? W becomes [url removed, login to view]:

? 47 / 60 ? is .7833? Then? put the .7833 after 34, and? divide by 60 again,? ? 34.7833 / 60 = 0.5797

Longitudes that are "West" are given negative numbers.

Latitudes that are "South" are given negative numbers.

Timezone is to be an integer number like -7

Chances are, while building your code to work through the list of airport codes, some of the codes won't be findable, or the lat,long or timezone data won't exist, so build your code to be robust enough to ignore those for now.? Lines with missing data can be found by-hand later.

## Deliverables

Delivered should be a PHP file, and a data file of airport data.

Habilidades: Engenharia, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Veja mais: lat lon nearest airport, airport codes lat, www noaa gov, to hand out, regex match list, regex is, regex info, regex codes, php codes list, online php project work, online code major, match management, international online services, how to write reports, how to write a letter, how to find work online, find and search in php code, create a search function in php source code, your world delivered, write a script online, regex online, canada numbers, write php online, write a letter online, php regex

Acerca do Empregador:
( 157 comentários ) Edmonton, Canada

ID do Projeto: #3009516

Concedido a:


See private message.

$106.25 USD em 14 dias
(24 Comentários)

3 freelancers estão ofertando em média $158 para esse trabalho


See private message.

$254.15 USD in 14 dias
(253 Comentários)

See private message.

$114.75 USD in 14 dias
(19 Comentários)