Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename "OSM data" example to "OpenStreetMap data" #8076

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ examples = [
"clock",
"dna",
"log_file",
"osm_data",
"openstreetmap_data",
"minimal",
"multiprocess_logging",
"multithreading",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--[metadata]
title = "OSM data"
title = "OpenStreetMap data"
tags = ["Map", "Blueprint"]
thumbnail_dimensions = [480, 480]
thumbnail = "https://static.rerun.io/osm_data/0be94071469c49f98326d85456ed2a3af8d1733a/480w.png"
Expand Down Expand Up @@ -29,13 +29,13 @@ git checkout latest # Check out the commit matching the latest SDK release
```
Install the necessary libraries specified in the requirements file:
```bash
pip install -e examples/python/osm_data
pip install -e examples/python/openstreetmap_data
```
To experiment with the provided example, simply execute the main Python script:
```bash
python -m osm_data # run the example
python -m openstreetmap_data # run the example
```
If you wish to customize it, explore additional features, or save it use the CLI with the `--help` option for guidance:
```bash
python -m osm_data --help
python -m openstreetmap_data --help
```
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def log_data(data: dict[str, Any]) -> None:


def main() -> None:
parser = ArgumentParser(description="Visualize OSM data")
parser = ArgumentParser(description="Visualize OpenStreetMap data")
rr.script_add_args(parser)
args = parser.parse_args()

Expand All @@ -94,7 +94,7 @@ def main() -> None:
collapse_panels=True,
)

rr.script_setup(args, "rerun_example_osm_data", default_blueprint=blueprint)
rr.script_setup(args, "rerun_example_openstreetmap_data", default_blueprint=blueprint)

data = execute_query(HOTELS_IN_LAUSANNE_QUERY)
log_data(data)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[project]
name = "osm_data"
name = "openstreetmap_data"
version = "0.1.0"
readme = "README.md"
dependencies = ["requests", "rerun-sdk"]

[project.scripts]
osm_data = "osm_data:main"
openstreetmap_data = "openstreetmap_data:main"

[build-system]
requires = ["hatchling"]
Expand Down
2 changes: 1 addition & 1 deletion lychee.toml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exclude = [
'https://fonts.gstatic.com/', # Font API entrypoint, not a link.
'https://tel.rerun.io/', # Analytics endpoint.
'https://docs-assets.developer.apple.com/ml-research/datasets/arkitscenes/v1', # Used by arkit_scenes.
'https://overpass-api.de/api/interpreter', # Used by osm_data example
'https://overpass-api.de/api/interpreter', # Used by openstreetmap_data example

# Avoid rate limiting.
'https://crates.io/crates/.*', # Avoid crates.io rate-limiting
Expand Down
Loading
Loading