roubikon
A Flask-based package for shortest-path route visualization on road networks with street-level imagery.
Features
- Serves a Flask web app with an interactive map interface
- Generates a side-by-side route video combining a 2D map view and street-level photos
- Supports pre-processed street view images or live Google Street View API fetching
- Barrier-free routing with configurable surface and elevation penalties
- Optional LLM-based routing adjustments via Claude API
Installation
pip install roubikon
Usage
1. Extract a road network graph
from roubikon import extract_graph, print_graph_stats
extract_graph("Konstanz, Germany")
print_graph_stats("graph_export.txt")
This downloads the road network for the given city from OpenStreetMap and saves it as graph_export.txt.
2. Start the web app
from roubikon import create_app
app = create_app(
data_file="graph_export.txt",
preprocessed_images_folder="augmented_konstanz_rn_small_preprocessed_rough",
)
app.run(debug=True, port=5000)
Then open http://localhost:5000 in your browser.
3. Optional: enable LLM-based routing adjustments
Pass a Claude API key to let users describe their mobility needs in natural language:
app = create_app(
data_file="graph_export.txt",
preprocessed_images_folder="augmented_konstanz_rn_small_preprocessed_rough",
anthropic_api_key="sk-ant-...",
)
Or set it as an environment variable:
export ANTHROPIC_API_KEY="sk-ant-..."
Get an API key at console.anthropic.com.
Road network file format
The graph_export.txt file follows this structure:
<number of vertices>
<number of edges>
<id> <lat> <lon> <elevation>
...
<node_a> <node_b> <length> <surface_type> <wheelchair>
...
Metadata
Release files for roubikon 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| roubikon-0.2.6.tar.gz | 2.3 MB | Without provenance | Details for roubikon-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| roubikon-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for roubikon-0.2.6-py3-none-any.whl |
Total release size: 4.6 MB
Release files / roubikon-0.2.6.tar.gz
| Download URL | roubikon-0.2.6.tar.gz |
|---|---|
| Size | 2.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
240e390f601270f45cbcf89e9b678ef713904dd7b6062676a226a1736ecc1552
|
|
BLAKE2b-256 checksum How to use checksums |
7610de518678ac1a2504793ee3a73438945e37e19c24f39b7ed965b3f11a1787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / roubikon-0.2.6-py3-none-any.whl
| Download URL | roubikon-0.2.6-py3-none-any.whl |
|---|---|
| Size | 2.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
892d1aa8fa1ff48a1aadbd2c70e027e61759160ca910700c908d04707bbbf3f2
|
|
BLAKE2b-256 checksum How to use checksums |
bd68b7738d88fba7554bf50f9def92f38e72034d1a5e0a5e12e6995664760988
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for roubikon 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.