Skip to content

A sample app that shows how to use Redis’s geospatial features with Go

License

Notifications You must be signed in to change notification settings

lfritz/go-geo-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

go-geo-redis

A sample app that shows how to use Redis’s geospatial features with Go.

This repo contains a simple command-line app that shows how to Redis’s commands for geospatial data with Go and the go-redis library.

Run

The easiest way to run Redis is with Docker:

docker run -p 6379:6379 redis

Then run the sample app like this:

go run main.go add
go run main.go lookup Zurich
go run main.go find Geneva
go run main.go export export.csv

To visualize the data, open http://geojson.io/ and drag export.csv onto the map.

Code

Each of the connect, add, lookup, find and export functions is self-contained code that shows one operation on the database.

About

A sample app that shows how to use Redis’s geospatial features with Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages