The Flight Finder API is a JSON over HTTP service designed to find routes between two airports based on IATA/ICAO airport codes. It prioritizes routes with the fewest layovers (up to 3 stops) while ensuring the shortest geographical distance in kilometers.
Additionally, the service supports ground hops, allowing for airport changes within 100km during stops. These hops don't contribute to the layover count but affect the total distance of the route.
To run the service locally, follow these steps:
- Install dependencies using
yarn install. - Start the service in development mode with
yarn start:dev.
Alternatively, you can run the service using Docker. Use the provided docker-compose.yml file to:
- Run the service itself, exposing port 3000:
docker-compose up -d service. - Execute tests within the Docker environment:
docker-compose up test.