https://github.com/strike24/israel_bus_cli
A Command Line Interface for accessing real-time bus information in Israel. 🚌
https://github.com/strike24/israel_bus_cli
gtfs hebrew israel-buses public-transport siri transit
Last synced: 11 months ago
JSON representation
A Command Line Interface for accessing real-time bus information in Israel. 🚌
- Host: GitHub
- URL: https://github.com/strike24/israel_bus_cli
- Owner: Strike24
- License: mit
- Created: 2025-08-26T21:50:31.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-27T09:10:11.000Z (11 months ago)
- Last Synced: 2025-08-27T16:39:49.404Z (11 months ago)
- Topics: gtfs, hebrew, israel-buses, public-transport, siri, transit
- Language: Python
- Homepage: https://pypi.org/project/israel-bus-cli
- Size: 20.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Israel Bus CLI 🚌🚍
CLI & Python API for searching Israeli bus stops and realtime line arrival info (unofficial, uses public Web endpoints).
## Install
```
pip install israel-bus-cli
```
## Quick usage (CLI)
Search address and list nearby stops (JSON):
```
israel-bus --address "דיזינגוף 220 תל אביב" --list-stops --json
```
Get lines for the first (nearest) stop, filter line 12:
```
israel-bus --address "דיזינגוף 220 תל אביב" --first-stop --line 12
```
Direct by stop id:
```
israel-bus --stop-id 26629 --line 12 --json
```
Interactive mode (no flags):
```
israel-bus
```
## Python API
```python
from israel_bus_cli import search_address, get_stops_near_location, get_lines_by_stop
addr = search_address("דיזינגוף 220 תל אביב")[0]
lat, lon = float(addr['lat']), float(addr['lon'])
stops = get_stops_near_location(lat, lon)
lines = get_lines_by_stop('26629')
```
## Disclaimer
Not affiliated with official transit authorities. API structure may change.
## License
MIT
## Development