Skip to main content

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.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for roubikon 0.2.7
File Size Uploaded Provenance Actions
roubikon-0.2.7.tar.gz 2.3 MB Without provenance Details for roubikon-0.2.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for roubikon 0.2.7
File Interpreter ABI Platform Actions
roubikon-0.2.7-py3-none-any.whl Python 3 none any Details for roubikon-0.2.7-py3-none-any.whl

Total release size: 4.6 MB

Release files / roubikon-0.2.7.tar.gz

Download URL roubikon-0.2.7.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9d4f46c8848099cfc028ff740efa6d526e6b4e3aac1f04b23951c2341b0bab20
BLAKE2b-256 checksum
How to use checksums
fc10886160087ab0290ac6422c9e8e29ecc1e49ceec1b5e6c96b275e15240713
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.7-py3-none-any.whl

Download URL roubikon-0.2.7-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
408ca6171b7137e6f982f9eeb8f980922e39c1819b3e2441ac6b78fdff608391
BLAKE2b-256 checksum
How to use checksums
4f5d10d0c795acae14c184c4e13f1f3baf8c8d68255b53fa9efc3a51fc3470c0
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.7

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page