Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.
Open
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: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ uv run ty check
uv run pytest tests/ --import-mode importlib
```

For GeoJSON hardening fixtures, see `docs/geojson-fixtures.md`.

## Usage

### `API()` constructor
Expand Down
24 changes: 24 additions & 0 deletions docs/geojson-fixtures.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# GeoJSON Fixtures (osmtogeojson reference)

We use `osmtogeojson` as a reference implementation to generate GeoJSON fixtures
for relation-heavy cases (multipolygons, routes, boundaries).

This does **not** add a runtime dependency. It is only for generating fixtures.

## Setup

Install Node and the converter:

```bash
npm install --global osmtogeojson
```

## Generate a fixture

Given an Overpass JSON response saved to `tests/fixtures/input.json`:

```bash
node tools/osmtogeojson_fixture.js tests/fixtures/input.json tests/fixtures/output.geojson
```

Commit the resulting `output.geojson` and use it as a golden file in tests.
Loading
Loading