go-whosonfirst-spatial-www

module
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2025 License: BSD-3-Clause

README

go-whosonfirst-spatial-www

Opinionated web application for the go-whosonfirst-spatial packages.

Documentation

Documentation is incomplete at this time.

Example

package main

import (
	"context"
	"log"

	_ "github.com/whosonfirst/go-reader-cachereader"
	"github.com/whosonfirst/go-whosonfirst-spatial-www/application/server"
)

func main() {

	ctx := context.Background()
	logger := log.Default()

	err := server.Run(ctx, logger)

	if err != nil {
		logger.Fatal(err)
	}
}

The default server implementation uses an in-memory RTree-based spatial index that needs to be populated when the server is started.

There are also server implementations for the following (spatial) databases:

Tools

$> make cli
go build -mod vendor -o bin/server cmd/server/main.go
server

Documentation for the server tool has been moved in to cmd/server/README.md.

Directories

Path Synopsis
app
cmd
server command
api
static
www

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL