GithubHelp home page GithubHelp logo

vladbatushkov / flights Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 6.0 162.92 MB

Flights Search Application GRANDstack Experimental Implementation

Dockerfile 2.54% Batchfile 0.34% C# 22.69% Shell 2.29% JavaScript 69.90% HTML 1.68% CSS 0.56%

flights's People

Contributors

dependabot[bot] avatar vladbatushkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flights's Issues

Fix bug with same city in the route

Currently query returns routes with Airports from same city in between.
For example, asking for flights from Bangkok to Moscow you will got route such as:
BKK (Bangkok) -> SIN (Singapore) -> DMK (Bangkok!!!) -> SVO (Moscow)

Search Box with Autocomplete

Autocomplete on "from" and "to" options.
User can use Airport code or city name. Both are valid and append autocomplete.

Cartesian Product in Query

Currently Query result not fit for Application directly. We need one more layer with computation of all possible combinations for the route spots. For example:

(a -> b -> c) =>
[ (a -> b), (b -> c) ] =>
[ [ flight_1, flight_2], [ flight_3, flight_4, flight_5 ] ] => 
[ [1, 3], [1, 4], [1, 5], [2, 3], [2, 4], [2, 5] ]

Would be awesome to do this Cartesian Product on level of database, not application.

Boundary of dates

Arrival around midnight. For example, you arrived at 22:00 so you have 2 hours in "this" date and any time of the upcoming "next" date. Search should try to look at "today" flights, but it should also search for flights of the "next" day as well.

Flight Card

Search result are represented as ended list of flights.
Each flights is a card with next information:
Direct/Flights with Stops.
All stops should be mentioned with Cities, Airport codes, Flight Number and Airline (operated flight).
Each flight price should be mentioned. Together with total price.
Departure time, Duration, Arrival time - for each combination of stops.

Add dependency on departure time in search for flights query

There is no check on when one plane arrived and then next one departure. Flights output not depends on time at all. Need to provides this feature as part of query filtering.
We need to use formula: 'this departure' + duration of flight + time of transfer (2 hours should be OK) <= 'next departure'. Keep in mind UTC correlation as well.
This task will lead to revisiting of existed Search Query.

City node

Having separated City nodes we can use city locations and simply find distance for Flights Search query usage.
Should contains props: name as STRING, country as STRING, location of type POINT.
We don't really need Country as separated node, but I would be happy if you also can do that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.