Skip to content
This repository was archived by the owner on Jul 24, 2026. It is now read-only.

Latest commit

 

History

158 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-whosonfirst-spatial-www

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

Deprecation notice

This package has been deprecated. Its functionality has been moved in to the whosonfirst/go-whosonfirst package. Efforts have been made to keep changes as minimal as possible. In most (but not all) cases update should be as simple as replacing:

import "github.com/whosonfirst/go-whosonfirst-spatial-www`

With:

import "github.com/whosonfirst/go-whosonfirst/v4/spatial/www"

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.

About

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

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages