Awesome Go

S2 geojson

CategoryGeographic
SubcategoryGeographic
Stars0

Convert geojson to s2 cells & demonstrating some S2 geometry features on map

About S2 geojson

Build Status GoDoc Go Report Card codecov

Preview

Summary

Draw a polygon on the map or paste a geoJSON and explore how the s2.RegionCoverer covers it with S2 cells depending on the min and max levels. Drop a marker and inspect the corresponding S2 cell.

  • Display s2 cells on leaflet map using the region coverer.
  • Convert geojson features to cell unions depending on the min and max levels (supported only Polygons and Points).
  • Draw points and polygons.
  • Check point & circle intersection with the geoJSON features.

Quick start

 go run cmd/s2-geojson/main.go

Docker

docker run -p 8080:8080 --rm lmaroulis/s2-geojson

License

This project is licensed under the MIT License - see the LICENSE file for details.

Frequently Asked Questions

What is S2 geojson?

S2 geojson is a Geographic library for the Go programming language. Convert geojson to s2 cells & demonstrating some S2 geometry features on map

How do I install S2 geojson?

Install S2 geojson with the Go module system using `go get pantrif/s2-geojson`. Check the repository for the current installation instructions.

What category does S2 geojson belong to?

S2 geojson is listed under Geographic, specifically Geographic.

← Back to Geographic