{"id":26744336,"url":"https://github.com/tachyons/bmtc","last_synced_at":"2025-06-22T16:40:36.289Z","repository":{"id":62554412,"uuid":"59906470","full_name":"tachyons/bmtc","owner":"tachyons","description":"Ruby wrapper for Bangalore Metropolitan Transport Corporation BMTC  Intelligent Transport System (ITS) API","archived":false,"fork":false,"pushed_at":"2018-08-15T06:08:45.000Z","size":12,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-02T13:10:41.991Z","etag":null,"topics":["bangalore","bmtc","bus","public-transportation"],"latest_commit_sha":null,"homepage":"","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/tachyons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-28T17:24:49.000Z","updated_at":"2018-08-15T06:08:46.000Z","dependencies_parsed_at":"2022-11-03T05:15:35.309Z","dependency_job_id":null,"html_url":"https://github.com/tachyons/bmtc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tachyons/bmtc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Fbmtc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Fbmtc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Fbmtc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Fbmtc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tachyons","download_url":"https://codeload.github.com/tachyons/bmtc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tachyons%2Fbmtc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261328094,"owners_count":23142444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bangalore","bmtc","bus","public-transportation"],"created_at":"2025-03-28T07:18:43.933Z","updated_at":"2025-06-22T16:40:31.262Z","avatar_url":"https://github.com/tachyons.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bmtc\n\n[![Build Status](https://travis-ci.org/tachyons/bmtc.svg?branch=master)](https://travis-ci.org/tachyons/bmtc)\n\nBangalore Metropolitan Transport Corporation BMTC recently released its Intelligent Transport System (ITS) , But as of now there is no public api available . This is an reverse engineering approach to solve the issue\n\nAPI Reference : https://github.com/tachyons/bmtc_api\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bmtc'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bmtc\n\n## Usage\n\nGet live bus status between stations\n\n```ruby\nBmtc::Bus.buses(\"Agara Junction\",\"Shanthinagara\")\n```\n\nGet all stops in a route\n\n```ruby\nBmtc::Route.stops_by_route_id(route_id)\n```\n\nBus time table\n\n```ruby\nBmtc::Route.time_table(\"340-A\")\n```\n\nSearch for bustop\n```ruby\nBmtc::BusStop.search \u003clocation\u003e\nBmtc::BusStop.search \"hsr\"\n```\nNearest bustop\n\n```ruby\nBmtc::BusStop.nearest_stop \u003clatitude\u003e,\u003clongitude\u003e\n```\n\nBuses in a stop\n```ruby\nBmtc::BusStop.buses_in_stop \u003cbus_stop_id\u003e\n```\nGet ttmc list\n\n```ruby\nBmtc::TTMC.all\n```\n\nGet route map\n\n```ruby\nBMTC::route_map \u003croute_id\u003e\nBMTC::route_map \"171\"\n```\n\nGet Trip fare\n\n```ruby\nBMTC.trip_fare(source: \"HSR CPWD Quarters\",destination:\"Shanthinagara TTMC\",service_type: :ordinary,no_adults: 1)\n```\n\nService types can be either\n* ordinary\n* vajra\n* vayu_vajra\n* atal_sarige\n* nice_service\n* bengaluru_darshini\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/tachyons/bmtc. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftachyons%2Fbmtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftachyons%2Fbmtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftachyons%2Fbmtc/lists"}