Find Jobs
Hire Freelancers

Bash Scripting

$20-50 AUD

Zavřený
Zveřejněno skoro před 4 roky

$20-50 AUD

Zaplaceno při doručení
TASK DETAILS Perth's Public Transport Authority (PTA) provides public access to its scheduled times, stop locations, and route information from its webpage [login to view URL] You may download your own copy of the data (about 90MB when uncompressed) by clicking on the first link "By downloading the data you are agreeing to the terms of the License..." The data is released as a collection of inter-related textfiles following the Google Transit Feed Specification (GTFS), which is also used by many other public transport companies, worldwide. Perth has a very good suburban train service. Unfortunately it is not very extensive and, if you need to a reach a destination via train, you often need to first catch a bus (or walk) to a train station. Perth also has a very attractive tourist destination, Rottnest Island. Unfortunately you cannot reach Rottnest Island by train, but you can travel to the last station on the Fremantle Train Line (Stop No: 99352), which is right next to the Rottnest Island B-shed ferry terminal! Perfect. So, if you have an urge to visit Rottnest Island, and you live less than a kilometre or twenty minutes walk from a train station, you will walk from your current location to the nearest train station, and catch a train toward the ferry terminal. If you're not close to the Fremantle Train Line, you may first need to catch another train to Perth Station or Perth Underground Station and then catch a Fremantle Line train from Perth Station. See the Clarifications. This task asks you to write a shellscript accepting two command-line arguments representing the latitude and longitude of your current location. Using the Google Transit Feed Specification (GTFS) data, your shellscript should first determine if your location is within one kilometre of a train station, and then determine the sequence of times and train stations required to get you to the ferry terminal. You're ready to leave at the time you run the shellscript! The output of the shellscript will be an HTML (text) webpage, reporting whether your impulsive dash to Rottnest is possible, and the instructions/directions to get you there. Buses given you motion-sickness, so you can only travel by a combination of walking and train. Be warned that the last ferry to Rottnest Island leaves at 15:30pm, so you'll need to ensure that you can catch it! Have your script simply print out your starting location, the departure time from your starting location, and the train stations where you get on and off any trains; any clear format is suitable. To calculate the distance, in metres, between a pair of latitude/longitude coordinates, you'll need to employ the haversine formula [Wikipedia]. You may wish to perform the calculation by invoking a single program or, if using AWK, by calling an AWK function. Here's the code for each: • haversine.c (which will require compiling - see comments in file), and • [login to view URL] (which should be embedded in a larger AWK script). TASK needs to be completed by 28th May.
IČ projektu: 25736247

O projektu

1 nabídka
Vzdálený projekt
Aktivní před 4 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
1 freelanceři nabízejí v průměru $175 AUD za tuto práci
Avatar uživatele
Hello, I am experienced IT System Engineer with industry experience of more than 4 years. I have involved in design, plan and implementation of multiple complex systems of Telecom operators. During the tenure of 4 years, I have involved with lot of Debian based Linux implementations and bash scripting. I am also certified with bash scripting skill in freelancer. I would like to myself to be considered as a candidate for the aforesaid work. Thanks Pamuditha
$175 AUD v 7 dnech
5,0 (1 recenze)
1,0
1,0

O klientovi

Pochází z INDIA
Perth, India
0,0
0
Členem od kvě 27, 2020

Ověření klienta

Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.