WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

4lie/lookups

Repository files navigation

Geo Lookups

Build PkgGoDev

Introduction

Fast and in-memory geo lookup library.

Simply add polygons and run queries. It uses Google's S2 Library for indexing and it's super fast 🚀.

Install

go get github.com/4lie/lookups

Examples

lookups_test.go contains several useful examples. You can check visualizations of them here.

Image Description
How indexing works
Simple polygon example
Polygon with holes example
Multiple polygons example