An open API service indexing awesome lists of open source software.

https://github.com/4lie/lookups

Fast and in memory geo lookup library
https://github.com/4lie/lookups

geo geohash geom geometry go golang library lookup point-in-polygon s2

Last synced: 23 days ago
JSON representation

Fast and in memory geo lookup library

Awesome Lists containing this project

README

          

# Geo Lookups

[![Build](https://github.com/4lie/lookups/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/4lie/lookups/actions/workflows/main.yml)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/4lie/lookups)](https://pkg.go.dev/github.com/4lie/lookups)

## 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 :rocket:.

## Install

``` bash
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 |