GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sreecodeslayer/bmtc-api-python: Bangalore Metropolitan Transport Corporation BMTC recently released its Intelligent Transport System (ITS) , But as of now there is no official public api available. This is an approach to build a python wrapper.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
bmtc.py
bmtc.py
 
 
bus_stop.py
bus_stop.py
 
 
constants.py
constants.py
 
 
route.py
route.py
 
 

Repository files navigation

Python Wrapper for BMTC API

Bangalore Metropolitan Transport Corporation BMTC recently released its Intelligent Transport System (ITS) , But as of now there is no official public api available. This is an approach to build a python wrapper based on the Reverse engineering work done by tachyons

API Reference : https://github.com/tachyons/bmtc-api

Installation

# From source provided you keep __init__.py
from bmtc import 'Bmtc'

Usage

Create a new instance.

bmtc = Bmtc()

Route wise details.

result = bmtc.route_wise('<direction>', '<routeNo>')

Route map details.

result = bmtc.route_map('<direction>', '<routeNo>')

Nearest stop details.

result = bmtc.nearest_stop('<lattitude>', '<longitude>')

Get stops matching the query string.

result = bmtc.search_stop('<keyword>')

Get stop details based on Stop ID.

result = bmtc.buses_in_stop('<stopId>')

Get a trip fare.

result = bmtc.trip_fare(<source>, <destination>, <service types>, <number of adults>)

Service types can be either

  • ordinary
  • vajra
  • vayu_vajra
  • atal_sarige
  • nice_service
  • bengaluru_darshini

Note: Every methods described above either returns an array of objects or a NULL array.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/sreecodeslayer/bmtc-api-python. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

This repository is available as open source under the terms of the MIT License.

About

Bangalore Metropolitan Transport Corporation BMTC recently released its Intelligent Transport System (ITS) , But as of now there is no official public api available. This is an approach to build a python wrapper.

Topics

apibmtcpythonpython-wrapperruby-on-rails

Resources

Readme
Activity

Stars

3 stars

Watchers

4 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.