Giter Site home page Giter Site logo

near-station-api-rails's Introduction

README

Ruby -v ruby-2.6.5

Commands to run the app, setup the database.yml

´´´ bundle install rake db:setup rails s ´´´

URLS

Import Data

METHOD: POST URL: http://localhost:3001/api/v1/import_data PARAMS: google_trasit[file] Response: 200

Check stations

METHOD: GET URL: http://localhost:3001/api/v1/stations PARAMS: lat: 0.37991373 long: -0.122090545 Response:

  [
    {
        "id": 259,
        "stop_id": "2094",
        "stop_code": "2094",
        "stop_name": "Pleasanton Ace",
        "stop_lat": 37.659113,
        "stop_lon": -121.882374,
        "location_type": "0",
        "parent_station": "\r\n",
        "created_at": "2020-05-26T16:33:46.909Z",
        "updated_at": "2020-05-26T16:33:46.909Z"
    },
    {
        "id": 260,
        "stop_id": "472",
        "stop_code": "472",
        "stop_name": "Airport Plaza",
        "stop_lat": 37.979308,
        "stop_lon": -122.054047,
        "location_type": "0",
        "parent_station": "\r\n",
        "created_at": "2020-05-26T16:33:46.939Z",
        "updated_at": "2020-05-26T16:33:46.939Z"
    }
  ]

near-station-api-rails

near-station-api-rails's People

Contributors

marcosocon avatar

Watchers

 avatar  avatar

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.