Skip to content

Commit

Permalink
docs: update readme with simple voronoi diagram illustration
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Feb 9, 2025
1 parent e240ab0 commit 2113d40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@ and has an acceptable performance penalty (see [benchmarks](#benchmarks)).

### How This Package Works

- geonames.org data.
- Voronoi polygons based on geopoints.
- Gzipped data bundled with package.
- Query the Voronois.
- Ingest geonames.org data for cities over 1000 population.
- Create voronoi polygons based on city geopoints.
- Bundle the voronoi data with this package and load into Postgis.
- Query the loaded voronoi data with a given geopoint, returning the city.

The diagram below should give a good indication for how this works:

![voronoi_italy](./voronoi_italy.jpg)

## Usage

Expand Down
Binary file added voronoi_italy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2113d40

Please sign in to comment.