Go package implementing the whosonfirst/go-whosonfirst-spelunker.Spelunker
interface for use with database/sql
backed databases.
Documentation is incompete at this time. For starters consult the (also incomplete) documentation in the whosonfirst/go-whosonfirst-spelunker package.
This is work in progress and you should expect things to change, break or simply not work yet.
For example:
$> cd /usr/local/whosonfirst/go-whosonfirst-sqlite-features-index
$> ./bin/wof-sqlite-index-features-mattn \
-timings \
-database-uri mattn:///usr/local/data/ca-search.db \
-spelunker-tables \
-index-alt geojson \
/usr/local/data/whosonfirst-data-admin-ca
$> du -h /usr/local/data/ca-search.db
1.4G /usr/local/data/ca-search.db
For example:
$> go run -mod readonly -tags "icu json1 fts5" cmd/httpd/main.go \
-server-uri http://localhost:8080 \
-spelunker-uri sql://sqlite3?dsn=file:/usr/local/data/ca-search.db
2024/02/13 08:46:41 INFO Listening for requests address=http://localhost:8080