{"id":15407147,"url":"https://github.com/ltfschoen/opendata-test","last_synced_at":"2026-05-16T22:32:31.349Z","repository":{"id":76620192,"uuid":"114979545","full_name":"ltfschoen/opendata-test","owner":"ltfschoen","description":"Ruby app to experiment with Transport for NSW (TfNSW) Open Data API datasets","archived":false,"fork":false,"pushed_at":"2017-12-22T04:55:08.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T18:44:12.934Z","etag":null,"topics":["curl","dotenv","https","net-http","nsw-government","opendata-api","ruby","transport"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ltfschoen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-21T08:05:15.000Z","updated_at":"2017-12-22T10:09:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"59f11e49-1b00-473c-82c1-ed54f6c5de02","html_url":"https://github.com/ltfschoen/opendata-test","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"42c072ab9a0a0a09e175313fca3ca61e7ffe73ce"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ltfschoen/opendata-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltfschoen%2Fopendata-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltfschoen%2Fopendata-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltfschoen%2Fopendata-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltfschoen%2Fopendata-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ltfschoen","download_url":"https://codeload.github.com/ltfschoen/opendata-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltfschoen%2Fopendata-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["curl","dotenv","https","net-http","nsw-government","opendata-api","ruby","transport"],"created_at":"2024-10-01T16:27:15.871Z","updated_at":"2026-05-16T22:32:31.333Z","avatar_url":"https://github.com/ltfschoen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenData API\n\n* About:\n  * Ruby application with HTTP(S) Session to re-use across multiple requests that are configured to use [Transport for NSW Open Data APIs](https://opendata.transport.nsw.gov.au). Currently configured to use:\n    * Traffic Volume Counts API\n    * Trip Planner API\n\n* Quick Start\n  * Obtain and Setup API Keys from OpenData API\n    * Register with OpenData API\n    * Create App\n    * Select API\n    * Obtain associated API Keys\n    * Add API Keys to .env file (i.e. `OPENDATA_API_KEY=\u003cINSERT_API_KEY\u003e`)\n    * Add or Update a module in ./config/config.rb with the API configuration\n    * Import the API configuration module into implementation code (i.e. ./src/main.rb) \n  * Install dependencies\n    ```\n    bundle install\n    ```\n  * Run\n    ```\n    bundle exec ruby ./src/main.rb\n    ```\n\n* Setup Log\n  * User Guide for OpenData API - https://opendata.transport.nsw.gov.au/user-guide\n    * Register - https://opendata.transport.nsw.gov.au/user/register\n    * Verify Password\n    * Login\n\n    * Create App\n      * https://opendata.transport.nsw.gov.au/user/6773\n      * Go to My Account \u003e Applications\n      * Click \"Add Application\"\n        * Application Name - \"congestion\"\n        * Link - https://opendata.transport.nsw.gov.au/application/congestion\n      * Select API - \"Traffic Volume Counts API\", \"Trip Planner API\"\n      * API Key - Add to .env file\n\n    * Use API\n      * Browse Data\n        * Select an API\n        * Choose how to use API\n          * Click either \"Explore API\" (opens API Explorer), then set Authentication type as \"API Key\", then click \"Expand Operations\" to see resource details, method, parameters, and response messages for a query\n          * Click \"Download\" (static datasets)\n      * Developers \u003e API Exporer - https://opendata.transport.nsw.gov.au/node/2171/exploreapi#!/default/get_spatial\n      * Click the button \"Try it out!\"\n\n  * Create Application\n    * Create Ruby file ./src/main.rb\n    * Create .env file\n    * Setup Gemfile \n      * Go to http://bundler.io/\n      * Run `gem install bundler`\n      * Add demo contents to Gemfile\n    * Add DotEnv Gem - https://github.com/bkeepers/dotenv\n    * Use Net HTTP to create request to OpenData API to replicate the following cURL request\n      ```\n      curl -X GET --header 'Accept: application/json' --header 'Authorization: apikey \u003cINSERT_API_KEY\u003e' 'https://api.transport.nsw.gov.au/v1/roads/spatial?format=geojson\u0026q=select%20*%20from%20road_traffic_counts_station_reference%20limit%2050%20'\n      ```\n    * Run with `bundle exec ruby ./src/main.rb`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltfschoen%2Fopendata-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltfschoen%2Fopendata-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltfschoen%2Fopendata-test/lists"}