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
- Host: GitHub
- URL: https://github.com/4lie/lookups
- Owner: 4lie
- License: mit
- Created: 2020-09-08T13:25:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T18:57:25.000Z (almost 3 years ago)
- Last Synced: 2024-06-19T06:00:01.416Z (over 1 year ago)
- Topics: geo, geohash, geom, geometry, go, golang, library, lookup, point-in-polygon, s2
- Language: Go
- Homepage:
- Size: 3.59 MB
- Stars: 18
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Geo Lookups
[](https://github.com/4lie/lookups/actions/workflows/main.yml)
[](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 |