Skip to content

Latest commit

 

History

History
62 lines (56 loc) · 2.5 KB

README.md

File metadata and controls

62 lines (56 loc) · 2.5 KB

OpenData API

  • About:

    • Ruby application with HTTP(S) Session to re-use across multiple requests that are configured to use Transport for NSW Open Data APIs. Currently configured to use:
      • Traffic Volume Counts API
      • Trip Planner API
  • Quick Start

    • Obtain and Setup API Keys from OpenData API
      • Register with OpenData API
      • Create App
      • Select API
      • Obtain associated API Keys
      • Add API Keys to .env file (i.e. OPENDATA_API_KEY=<INSERT_API_KEY>)
      • Add or Update a module in ./config/config.rb with the API configuration
      • Import the API configuration module into implementation code (i.e. ./src/main.rb)
    • Install dependencies
      bundle install
      
    • Run
      bundle exec ruby ./src/main.rb
      
  • Setup Log