Python: roundtrip airplane itinerary

Completed Posted 6 years ago Paid on delivery
Completed Paid on delivery

Task:

On the input you have data about flights ([url removed, login to view])

You will need to create itineraries that contain exactly 10 different countries and they come back to original destination (round trip). Maximum duration of round trip is one year.

Itinerary has to contain exactly 10 flights.

Generate at least 100 itineraries.

INPUT FILE: (will have 20 000 lines)

source;destination;local_departure_time;local_arrival_time

GRU;LHR;2016-04-01 23:45:00;2016-04-02 15:10:00

CWB;VCP;2016-04-29 11:30:00;2016-04-29 12:30:00

BOM;COK;2016-04-10 09:15:00;2016-04-10 11:30:00

MDZ;EZE;2016-04-22 16:30:00;2016-04-22 18:02:00

GIG;REC;2016-08-14 22:10:00;2016-08-15 00:58:00

SMI;AMS;2016-06-03 10:40:00;2016-06-03 13:30:00

CNX;KKC;2016-07-12 06:00:00;2016-07-12 07:10:00

LPA;LGW;2017-04-29 20:10:00;2017-04-30 00:15:00

JNB;CPT;2017-05-09 08:25:00;2017-05-09 10:35:00

SHA;CKG;2016-10-10 17:15:00;2016-10-10 20:10:00

KBV;DMK;2016-09-29 13:10:00;2016-09-29 14:35:00

MNL;CEB;2016-05-11 05:40:00;2016-05-11 07:05:00

YYC;YQR;2017-01-13 08:25:00;2017-01-13 11:00:00

CDG;HAM;2016-08-19 12:45:00;2016-08-19 14:15:00

MEX;CUL;2016-06-03 08:15:00;2016-06-03 09:27:00

BCD;MNL;2016-11-09 06:00:00;2016-11-09 07:10:00

...

---------------------------------------------------------------

Proposed output format:

for example

<trip_id>;<country_code>;<source>;<destination>;<local_departure_time>;<local_arrival_time>

trip_id - id of a trip

country_code - country code (ISO Alpha-2) for airport from which airplane departs

source - iata airport code from which airplane departs

destination - iata airport code to which airplane arrives

local_departure_time - local time of airport from which airplane departs

local_arrival_time - local time of airport to which airplane arrives

iata code: [url removed, login to view]

Explicitly output can look something like this: (or whatever that is understandable)

1;CZ;PRG;BRU;2017-03-04T13:15;2017-03-04T15:15

1;AA;BRU;LON;2017-04-04T13:15;2017-04-04T15:15

1;BB;LON;VIE;2017-05-04T13:15;2017-05-04T15:15

1;CC;VIE;AAA;2017-06-04T13:15;2017-06-04T15:15

1;DD;AAA;HHH;2017-07-04T13:15;2017-07-04T15:15

1;EE;HHH;KKK;2017-08-04T13:15;2017-08-04T15:15

1;FF;KKK;LLL;2017-09-04T13:15;2017-09-04T15:15

1;GG;LLL;GGG;2017-10-04T13:15;2017-10-04T15:15

1;HH;GGG;UUU;2017-11-04T13:15;2017-11-04T15:15

1;II;UUU;PRG;2017-12-04T13:15;2017-12-04T15:15

2;AA;BRU;LON;2017-01-04T13:15;2017-01-04T15:15

2;CZ;LON;PRG;2017-02-04T13:15;2017-02-04T15:15

2;BB;PRG;VIE;2017-03-04T13:15;2017-03-04T15:15

Python

Project ID: #14713170

About the project

18 proposals Remote project Active 6 years ago

Awarded to:

deoxy37

Will complete it in 2 days with all requirements taken into account. Will provide with easily understood pipeline delivered in Jupyter notebook that could further be easily used for the same input. Relevant Skills a More

€19 EUR in 2 days
(0 Reviews)
0.0

18 freelancers are bidding on average €55 for this job

cugamelover

I can do exactly what you need. I am a computer science professional with a PhD degree and expert skills in Python and a number of other languages. I've done many similar projects. Please see reviews on my profile. It More

€50 EUR in 1 day
(23 Reviews)
5.4
srinichal

I am an expert in delivering custom projects and scripts Relevant Skills and Experience proven track record on this site Proposed Milestones €34 EUR - milestone

€34 EUR in 1 day
(23 Reviews)
5.3
vano101

Hello. It looks as something similar on project I completed recently.

€16 EUR in 1 day
(63 Reviews)
4.8
abhi742

A proposal has not yet been provided

€20 EUR in 1 day
(11 Reviews)
3.6
shafaqat11

Hello Sir, Thank you for posting the project. I read your project description. I understand your requirement for this job. I am expert in Python. I've more than 3 years experience in related field. Let’s go for i More

€166 EUR in 1 day
(3 Reviews)
3.3
ameurbennaoui

A proposal has not yet been provided

€220 EUR in 4 days
(1 Review)
2.6
ExpertzWorld

I work with passion, discernment, perception, and credibility which makes me come up with the best result ever. Also, I deliver great results with a process that’s timely Stay tuned, I'm is still working on this pro More

€23 EUR in 1 day
(2 Reviews)
0.6
cababay

Hello, i am expert on python also i am a solution architect. I liked your project. I will be so glad, if you award me with the project. It will be very pleasurable and easy for me. Relevant Skills and Experience pytho More

€30 EUR in 3 days
(0 Reviews)
0.0
ubaidwanii

Hello My name is Ubaid from Kashmir My freelancer profile is new but i have 11 years experience, I have worked for several clients. Joined Freelancer with over 11years rich experience in the field.I have successfully More

€8 EUR in 0 days
(0 Reviews)
0.0
namratapatel92

I have worked in python. Relevant Skills and Experience Python Proposed Milestones €24 EUR - Analyze, development

€24 EUR in 3 days
(0 Reviews)
0.0
shahiddar

HELLO My nam e is shahid dar. I have 8+ experience in python and java programming .I am doing programming on python from last 8 years. I have successfully completed many projects related to python programming . I More

€14 EUR in 3 days
(0 Reviews)
0.0
DevForBiz

A proposal has not yet been provided

€30 EUR in 2 days
(0 Reviews)
0.0
PhysicsPhdSb

This is very straightforward and fun project, though it will take several hours to complete. If complete it very quick, I will charge you less than the bid amount. Relevant Skills and Experience 4 years of programming More

€222 EUR in 1 day
(0 Reviews)
0.0