Find Jobs
Hire Freelancers

PHP Lat,Long to nearest major airport

$100-500 USD

Complété
Publié il y a plus de 14 ans

$100-500 USD

Payé lors de la livraison
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. [login to view URL] 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:/ /[login to view URL] ? ? ? 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:/ /[login to view URL] then RegEx search to match YEG, then follow the nearby link to http:/ /[login to view URL] 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: -113.5797,? ? 53.3097 Here's how 113° 34’ 47?? W becomes -113.5797: ? 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.
N° de projet : 3009516

Concernant le projet

3 propositions
Projet à distance
Actif à il y a 14 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
See private message.
$106,25 USD en 14 jours
5,0 (24 commentaires)
4,2
4,2
3 freelances proposent en moyenne $158 USD pour ce travail
Avatar de l'utilisateur
See private message.
$254,15 USD en 14 jours
5,0 (253 commentaires)
7,0
7,0
Avatar de l'utilisateur
See private message.
$114,75 USD en 14 jours
4,9 (19 commentaires)
3,9
3,9

À propos du client

Drapeau de CANADA
Edmonton, Canada
5,0
157
Méthode de paiement vérifiée
Membre depuis déc. 3, 2009

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.