Giter Site home page Giter Site logo

jetblue-dibs's Introduction

jetblue-dibs

GET to /api/destinations returns a list of all destination objects, where a destination object has fields:

{
  code: "YUL",
  city: "Montreal",
  coordinates: {
    lat: 45.5017,
    lng: 73.5673
  },
  image: "https://scontent-lga3-1.cdninstagram.com/hphotos-xfp1/t51.2885-15/e35/12224431_720653774746321_479880755_n.jpg"
}

GET to /api/destinations/YUL returns the details of the soonest flight to that code. If there is a query parameter from (e.g. /api/destinations/YUL?from=BOS), then it finds the soonest flight to that location from the from code.

{
  origin: "BOS",
  destination: "YUL",
  hotel: "70 Park Avenue Hotel, a Kimpton Hotel",
  nights: 3,
  check-in: "10/23/2015",
  check-out: "10/30/2015",
  jetblue-price: 1674.87,
  expedia-price: 1684.68
}

GET to /api/destinations/YUL/feed returns a list of recent images and videos geotagged in a landmark near that code's city. An image object looks like this:

{
  type: "image",
  link: "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_7.jpg",
  landmark: "Dogpatch Labs"
}

and a video object looks like this:

{
  type: "video",
  link: "http://distilleryvesper9-13.ak.instagram.com/090d06dad9cd11e2aa0912313817975d_101.mp4",
  landmark: "Dogpatch Labs"
}

jetblue-dibs's People

Contributors

lvwrence avatar jriemann avatar pkukulak avatar

Watchers

James Cloos avatar  avatar

jetblue-dibs's Issues

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.