locator

command module
v0.0.0-...-5b4067c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

Locator Service

This service is used to help us to locate a coordinates. We have another repo with some json files that describes different areas. This is used later to locate a coordinates into those areas.

For instance, we have all the boroughs of London. Given any coordinate inside London we want to know to which borouch aproximately that coordinates belongs to.

Stack used

Go

We used Go to build this microservice. This is a really small service built on top of Gin and some other packages like:

  • Gin
  • Godeps
  • Golang-lru
  • Elastic.v3

We use the lru package to give some cache functionality to this service.

Elastic

We store those services on Elastic. We use the geocode filter in order to given a coordinates and a radius find the best match. We have to improve this when we have several points to describe a borough.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/golang/protobuf/proto
Package proto converts data structures to and from the wire format of protocol buffers.
Package proto converts data structures to and from the wire format of protocol buffers.
_workspace/src/github.com/hashicorp/golang-lru
This package provides a simple LRU cache.
This package provides a simple LRU cache.
_workspace/src/golang.org/x/net/context
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
_workspace/src/gopkg.in/go-playground/validator.v8
Package validator implements value validations for structs and individual fields based on tags.
Package validator implements value validations for structs and individual fields based on tags.
_workspace/src/gopkg.in/olivere/elastic.v3
Package elastic provides an interface to the Elasticsearch server (http://www.elasticsearch.org/).
Package elastic provides an interface to the Elasticsearch server (http://www.elasticsearch.org/).
_workspace/src/gopkg.in/olivere/elastic.v3/uritemplates
Package uritemplates is a level 4 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570).
Package uritemplates is a level 4 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL