YANDEX 传输 API 客户端库
项目描述
ya_ma是 YANDEX MAPS API 的非官方客户端库 此客户端可以请求公交车站的数据并将其显示在 python 字典中
安装
只需使用pip(你有 pip,对吗?)来安装 ya_ma及其依赖项:
pip install ya_ma
例子
>>> from ya_ma import YandexMapsRequester >>> client = YandexMapsRequester() >>> print(client.get_stop_info(9639579)) >>> client = YandexMapsRequester() >>> print(client.get_stop_info(9639579))
或者你可以在你的 shell 中使用它:
python -m ya_ma -s 9966346