On the Run

Made at Leeds Hack 2011. Tells you how far you can get away, for an amount of money.

Say how much money you have to spend and 'On the Run' will calculate the furtheset distance you can travel with BMI baby.


Made with Andy Mitchell

Best Hack using BMI baby API

Screenshot

How does it work?

  • We scraped the BMI baby API all night getting flight details for each of their destinations flying from the UK, including cost for 1 adult for the next 2 weeks
  • Found latitude and longitude data for all airports
  • Stored everything in a MySQL database
  • We calculated the distance of each flight
  • You enter the maximum amount of money to spend
  • Results are then ordered based on distance from the UK departures airport(s) you choose

The Website

All written in PHP, the front-end site displaying results from your search and a backend scraping the BMI baby API.

The flight destinations available to you are displayed on a Google Map, clicking on one takes you to the result on the page.

Each destination has a country and it's flag is also shown.