Skip to content

jelmervdl/gopointserver

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Usage

Start the server with one or more geojson files:

./gopointserver ./stemlokalen.geojson

Fetch all features in a certain bounding box:

http://localhost:8000/features?bbox=6.546928882598878,53.21316473076784,6.572463512420655,53.220732537799954

Fetch all features in a certain radius of a point:

http://localhost:8000/nearest?point=6.546928882598878,53.21316473076784&radius=0.01

Building

I haven't figured out yet how go install works. So for now, just clone the repository and run

git clone git@github.com/jelmervdl/gopointserver.git
go build

Limitations

The server currently only supports points. No other (more complex) geometry is supported, and will cause the server to crash :)

About

Go web server that filters and servers a GeoJSON FeatureCollection given a bounding box

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published