Code Monkey home page Code Monkey logo

gzbus's Introduction

gzbus

Build Status Version

Guangzhou bus routine realtime tracking.

>>> pprint(gzbus.query_realtime_routine('大学城环线1', '广工站'), compact=True)
[{'current': {'bus_station': '综合商业北区站',
              'destinate_station': '市国家档案馆(大学城)总站',
              'distance': 13,
              'waiting_station': '广工站'},
  'name': '大学城环线1',
  'stations': {'stations': ['市国家档案馆(大学城)总站', '西五路(中部枢纽)站', '广大站', '广大生活区站',
                            '广大公寓站', '广美生活区站', '中环西路站', '广工站', '综合商业南区站',
                            '华工站', '华工生活区站', '广中医广药站', '广外站', '中环东路站', '中大站',
                            '综合商业北区站', '星海学院站', '华师站', '西五路(中部枢纽)站',
                            '市国家档案馆(大学城)总站'],
               'terminal': {'市国家档案馆(大学城)总站': ['市国家档案馆(大学城)总站', '西五路(中部枢纽)站',
                                              '广大站', '广大生活区站', '广大公寓站',
                                              '广美生活区站', '中环西路站', '广工站',
                                              '综合商业南区站', '华工站', '华工生活区站',
                                              '广中医广药站', '广外站', '中环东路站',
                                              '中大站', '综合商业北区站', '星海学院站',
                                              '华师站', '西五路(中部枢纽)站',
                                              '市国家档案馆(大学城)总站']}}},
 {'current': {'bus_station': '市国家档案馆(大学城)总站',
              'destinate_station': '市国家档案馆(大学城)总站',
              'distance': 13,
              'waiting_station': '广工站'},
  'name': '大学城环线1',
  'stations': {'stations': ['市国家档案馆(大学城)总站', '西五路(中部枢纽)站', '华师站', '星海学院站',
                            '综合商业北区站', '中大站', '中环东路站', '广外站', '广中医广药站',
                            '华工生活区站', '华工站', '综合商业南区站', '广工站', '中环西路站',
                            '广美生活区站', '广大公寓站', '广大生活区站', '广大站', '西五路(中部枢纽)站',
                            '市国家档案馆(大学城)总站'],
               'terminal': {'市国家档案馆(大学城)总站': ['市国家档案馆(大学城)总站', '西五路(中部枢纽)站',
                                              '华师站', '星海学院站', '综合商业北区站',
                                              '中大站', '中环东路站', '广外站',
                                              '广中医广药站', '华工生活区站', '华工站',
                                              '综合商业南区站', '广工站', '中环西路站',
                                              '广美生活区站', '广大公寓站', '广大生活区站',
                                              '广大站', '西五路(中部枢纽)站',
                                              '市国家档案馆(大学城)总站']}}}]

Installation

$ pip install gzbus

License

MIT

gzbus's People

Contributors

bcho avatar

Watchers

 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.