GithubHelp home page GithubHelp logo

transformukibeaconhackathon's Introduction

Chat: Join the chat at https://gitter.im/TransformCore/Hackathon2015

DashboardHub Badge

TransformUk: http://www.transformuk.com/transform-beacon-sticker-hackathon/


TransformUKiBeaconHackathon - Park here

Easily park your car.

iPhone App: https://github.com/AlexandreJacquemot/TransformUKiBeaconHackathoniOSApp

Slides & presentation coming soon.

Won 2nd prices


Example Car Park (beacon) UIDs

  1. Car Park 1 (Reading Room)

    • d62963a73f2f occupied space
    • e669a773c7fc empty space
  2. Car Park 2 (Round House)

    • f9981322a822 occupied space
    • d97a7459dd10 empty space

Deployed Server

https://transform2015-hackathon.herokuapp.com

Example... https://transform2015-hackathon.herokuapp.com/api/parkings/d97a7459dd10/spaces

Documentation

  1. Get list of Spaces available by Car park
  2. Check in to Parking Space
  3. Check out of Parking Space

Ideas

Car park

Caveats

  • Underground - Internet / Wifi required

Features

  • Find an empty parking space
  • Give car a specified space
  • Locate your car
  • Pay for parking space per minute

Train usage

Features

  • Carriage capacity

Teacher / Children school

Features

transformukibeaconhackathon's People

Contributors

eddiejaoude avatar

Watchers

 avatar  avatar

transformukibeaconhackathon's Issues

Check into Parking Space

[POST] /api/parkings/checks/ins

Parking space not found

Request

{
   "phone": {
      "uid": "[UID]" // e.g. abc123
   },
   "beacon": {
      "uid": "[UID]" // e.g. xyz123NoExist
   }
}

404 Response

{
    "message": "Parking Space not found"
}

Parking space already in use

Request

{
   "phone": {
      "uid": "[UID]" // e.g. abc123
   },
   "beacon": {
      "uid": "[UID]" // e.g. xyz123AlreadyInUse
   }
}

400 Response

{
    "message": "Parking Space already taken"
}

Parking space check in

Request

{
   "phone": {
      "uid": "[UID]" // e.g. abc123
   },
   "beacon": {
      "uid": "[UID]" // e.g. fbe5c750068d
   }
}

200 Response

{
    "id": 11,
    "uid": "fbe5c750068d",
    "name": "2C",
    "carPark": "Round House",
    "car": {
        "id": 8,
        "uid": "111",
        "createdOn": "2015-04-26T05:40:29+0100"
    },
    "available": false,
    "x": 0.98591918935355,
    "y": -2.4072161013007,
    "orientation": -0.9427060213956,
    "minuteCost": 1,
    "totalCost": 0
}

Check out of parking space

[POST] /api/parkings/checks/outs

Parking Space not found

Request

{
   "phone": {
      "uid": "[UID]" // e.g. abc123
   },
   "beacon": {
      "uid": "[UID]" // e.g. xyz123NoExist
   }
}

404 Response

{
    "message": "Parking Space not found"
}

Parking Space not used

Request

{
   "phone": {
      "uid": "[UID]" // e.g. abc123
   },
   "beacon": {
      "uid": "[UID]" // e.g. xyz123NoCar
   }
}

400 Response

{
    "message": "Parking Space not used"
}

Parking Space check out

Request

{
   "phone": {
      "uid": "[UID]" // e.g. abc123
   },
   "beacon": {
      "uid": "[UID]" // e.g. xyz123
   }
}

200 Response

{
    "id": 11,
    "uid": "fbe5c750068d",
    "name": "2C",
    "carPark": "Round House",
    "available": true,
    "x": 0.98591918935355,
    "y": -2.4072161013007,
    "orientation": -0.9427060213956,
    "minuteCost": 1.6,
    "totalCost": 43.2,
    "duration": "0 hour(s) 27 minute(s)"
}

Get list of parking spaces in car park by 1 of the beacons id

[GET] /api/parkings/[UID]/spaces

Response

e.g. /api/parkings/d97a7459dd10/spaces

[
    {
        "id": 9,
        "uid": "f9981322a822",
        "name": "2A",
        "carPark": "Round House",
        "car": {
            "id": 6,
            "uid": "pqrstuv",
            "createdOn": "2015-04-26T05:17:45+0100"
        },
        "available": false,
        "x": 0.16314266269617,
        "y": 2.4177297623055,
        "orientation": 180.65432739258,
        "minuteCost": 1,
        "totalCost": 0
    },
    {
        "id": 10,
        "uid": "d97a7459dd10",
        "name": "2B",
        "carPark": "Round House",
        "available": true,
        "x": 1.2629431022081,
        "y": 0.57386402448867,
        "orientation": 267.88688243519,
        "minuteCost": 1,
        "totalCost": 0
    },
    {
        "id": 11,
        "uid": "fbe5c750068d",
        "name": "2C",
        "carPark": "Round House",
        "available": true,
        "x": 0.98591918935355,
        "y": -2.4072161013007,
        "orientation": -0.9427060213956,
        "minuteCost": 1,
        "totalCost": 0
    },
    {
        "id": 12,
        "uid": "ece4f376f9d7",
        "name": "",
        "carPark": "Round House",
        "car": {
            "id": 7,
            "uid": "wxyzabc",
            "createdOn": "2015-04-26T05:17:45+0100"
        },
        "available": false,
        "x": -0.91253639211369,
        "y": -0.99326369401238,
        "orientation": 82.355632435192,
        "minuteCost": 1,
        "totalCost": 0
    }
]

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.