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

Investigate adding go-whosonfirst-spatial-duckdb #45

Open
thisisaaronland opened this issue Sep 9, 2024 · 1 comment
Open

Investigate adding go-whosonfirst-spatial-duckdb #45

thisisaaronland opened this issue Sep 9, 2024 · 1 comment

Comments

@thisisaaronland
Copy link
Member

https://duckdb.org/2024/09/09/announcing-duckdb-110.html

@thisisaaronland
Copy link
Member Author

Related:

https://geocode.earth/data/whosonfirst/combined/

D SELECT id,name FROM read_parquet('/usr/local/data/whosonfirst-data-admin-latest.parquet') WHERE ST_Contains(geometry::GEOMETRY, 'POINT(-113.49058382120987 53.55192911144368)'::GEOMETRY);
100% ▕████████████████████████████████████████████████████████████▏ 
┌────────────┬────────────────────┐
│     id     │        name        │
├────────────┼────────────────────┤
│ 1108970679 │ Central Core       │
│ 1108970663 │ Chinatown North    │
│ 890458485  │ Edmonton           │
│ 1108971557 │ Mature Area Sector │
│ 1511799791 │ Edmonton           │
│ 102047473  │ America/Edmonton   │
│ 85874693   │ McCauley           │
│ 85682091   │ Alberta            │
│ 85633041   │ Canada             │
│ 102191575  │ North America      │
└────────────┴────────────────────┘

It's not crazy-fast but probably fast enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant