Giter VIP home page Giter VIP logo

travel's Introduction

Kazan`s Router

Used to find routes between Kazan and wish destination. You can use the application for any cities. To do this, edit the config/travelways.php file.

How it works

There are 2 arrays in the travelways.php file: additional_routes and exclusive_bus_pairs. For example, a traveler from Kazan can look for flights not only from his own city, but also take a plane/train/bus to a neighboring city and check routes from them. For these purposes, we use the array additional_routes.

'additional_routes' => [
        ['Moscow'], // From the point of departure to Moscow, from Moscow to the point of destination
        ['Saint Petersburg'],
        ['Kaliningrad', 'Gdansk'],// From the point of departure to Kaliningrad, from Kaliningrad to Gdyansk, from Gdyansk to the destination point
        ['Minsk', 'Riga',],
        ['Moscow','Saint Petersburg','Tallinn'],
    ],

To determine which routes will be operated exclusively by the bus, it is necessary to fill in the array exclusive_bus_pairs. This can be useful if there is no air service between the current cities or for other reasons.

'exclusive_bus_pairs' => [
    ['Saint Petersburg'=>'Tallinn'],
    ['Minsk'=>'Riga'],
    ['Kaliningrad'=>'Gdansk'],
]

Proxy

To speed up the search for routes, you need to use a proxy to run parallel jobs. Paste them into the .env file.

PROXY_1 = "login:[email protected]:1252"
PROXY_2 = "login:[email protected]:1253"
PROXY_3 = "login:[email protected]:1254"

Jobs

Routes are searched in the background. So, you need to dispatch jobs anytime. Start the supervisor by specifying the number of channels equal to the number of your proxies and set up the cron every minute.

travel's People

Contributors

rafinol avatar kamaloradik avatar

Watchers

 avatar

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.