Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naviqore/public-transit-viewer
Viewer to interact with the public transit service.
https://github.com/naviqore/public-transit-viewer
gui isoline-routing public-transport routing streamlit viewer
Last synced: 2 months ago
JSON representation
Viewer to interact with the public transit service.
- Host: GitHub
- URL: https://github.com/naviqore/public-transit-viewer
- Owner: naviqore
- License: mit
- Created: 2024-05-25T13:00:10.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T23:55:27.000Z (3 months ago)
- Last Synced: 2024-10-01T15:43:53.676Z (3 months ago)
- Topics: gui, isoline-routing, public-transport, routing, streamlit, viewer
- Language: Python
- Homepage:
- Size: 1000 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Public Transit Viewer
Viewer to interact with the [Public Transit Service](https://github.com/naviqore/public-transit-service).
The streamlit based Python app allows users to query connections between two stops or generate isolines from a specific
stop. The application supports the query parameters of the service to search specific connections or isoline.## Installation
Get the current release from pypi and start the viewer:
```sh
pip install public-transit-viewerexport NAVIQORE_SERVICE_URL=
ptv-deploy
```Or run the viewer inside a Docker container:
```sh
docker run -p 8501:8501 -e NAVIQORE_SERVICE_URL= ghcr.io/naviqore/public-transit-client:latest
```Access the viewer on `http://localhost:8501`.
## Development
### Configuration
Create a `.env` file in the root directory. And add a line telling the application to which service host it should
connect. In Local Development this is typically a Java Spring service running on `http://localhost:8080`.The required line in the `.env` file will then be: `NAVIQORE_SERVICE_URL=http://localhost:8080`
**Note**: you can also specify the `NAVIQORE_SERVICE_URL` in your operating system environment.
### Starting the App
To start the app in development mode run following command from the root directory:
```sh
poetry run streamlit run public_transit_viewer/connections.py
```## License
This project is licensed under the MIT License - see
the [LICENSE](https://github.com/naviqore/public-transit-viewer/blob/main/LICENSE) file for details.