Coder Social home page Coder Social logo

beijing-realtime-bus's Introduction

Beijing Realtime Bus 北京实时公交

少年不装逼何以平天下。

Hy 写的。

逆向自客户端。

当然。。。增加了 Python 版本。

使用

main.py.

API doc

所有座标为高德地图座标。

BeijingBusApi

- check_update()
  - [{'status': 状态, 'version': 线路版本号, 'id': 线路id}, ...]
- get_busline_info(线路id0, 线路id1, 线路id2, ...)
  - [{'status': 状态, 'totalPrice': 总价, 'stations': [{'lat': , 'lon': , 'name': 站名, 'no': 站号},...],
  -   'coord': 线路经纬度折线图,
  -   'shotname': 短站名, 'linename': 长站名, version': 线路版本号, 'time': 运营时间, 'distince': 线路全长, 'ticket': 票价,
  -   'lineid': 线路id, 'type': 线路类型}, ...]
- get_busline_realtime_info(线路id, 站号) 具体还不清楚
  - [{'gt': gpsupdateTime, 'nsn': nextStationNo, 'ut': ?更新时间, 'nsrt': nextStationRunTimes 距离下一站时间,
  -   'nsd': nextStationDistince, 'st': stationTime, 't': '1', 'srt': stationRunTimes,
  -   'y': , 'x': , 'ns': nextStation 下一站, 'nst': nextStationTime, 'id': BUS-id, 'sd': u'stationDistince'}, ...]

TODO

  • 部分站点有问题,如 id=273 , 站点名解析错误

beijing-realtime-bus's People

Contributors

andelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beijing-realtime-bus's Issues

获取含中文的线路不正确

我们在slack_bot里面根据你的代码获得实时公交线路情况. 但是遇到一个问题 - 不能正确获得含中文的公交线路的情况. 比如 运通101 这样的. 我看<北京实时公交>app里面是有这个线路的. 我不会反编译, 能帮我们研究下么? thx~

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.