Prerequisites: Java 8.
Edit config.properties
to configure app (port binding, routes search params etc.)
For service start just:
./gradlew run
or gradlew.bat
on Windows.
Make HTTP query to /routes/<from>/<to>/[?order=changes|duration|cost[&desc]]
for routes search. E.g.:
http://localhost:8080/routes/moscow-russia/hong-kong-hong-kong/?order=cost&desc
If you need to find available locations, use /locations/<prefix>/
like
http://localhost:8080/locations/mos/
Airports, airlines and routes data for test purposes have been obtained from OpenFlights.
They contains in airlines.dat
, airports.dat
and routes.dat
CSV files.