Giter Site home page Giter Site logo

jiangxiaoli / flask_airport_distance Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 180 KB

A web app that calculates the distance (in nautical miles) between two airports. The app should auto- complete the airports and should feature all airports in the US. Bonus: plot the trip on Google maps.

Python 2.25% CSS 0.30% JavaScript 91.85% HTML 5.60%

flask_airport_distance's Introduction

Airport-Distance

A web app that calculates the distance (in nautical miles) between two airports.

Features:

  • Auto-complete the airports, with jQuery UI autocomplete
  • Feature all airports in the US, with self-build airports.js file
  • Calculate the distance of two airports, with SITA Airport API for airport info and distance
  • Plot the trip on Google maps, with Google Map API and gmaps.js library
  • Python Flask framwork to support cross domian issue with SITA API

Live Demo

  • Live Demo for Airport-Distance Web App running on AWS EC2.

Installation

  • Check your Python Version, 2.7.* would be best
Python -V
  • install Flask
  • install requests
pip install Flask
pip install requests

  • Run the app
python run.py

Tech

This work uses a number of open source projects to work properly:

  • flask - The Web microframework for perfectionists with deadlines.
  • jQuery - The Write Less, Do More, JavaScript Library.
  • jQuery UI - Set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library
  • Ajax - jQuery library to load data from the server without a browser page refresh
  • bootstrap - The most popular front-end framework for developing responsive, mobile first projects on the web.
  • SITA Airport API - The public API from SITA Developers, to retrieve information about airports.
  • Google Maps JavaScript API V3 - Embed the robust functionality and usefulness of Google Maps into website
  • gmaps.js - Google Maps API with less pain and more fun

Author

License

MIT

flask_airport_distance's People

Contributors

jiangxiaoli avatar

Stargazers

Bon Osonwanne avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

xxllp

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.