geocode

package
v0.0.0-...-d6cb8d1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package geocode handles mapping user-entered locations into lat/long polygons.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LatLong

type LatLong struct {
	Lat  float64 `json:"lat"`
	Long float64 `json:"lng"`
}

type Rect

type Rect struct {
	NorthEast LatLong `json:"northeast"`
	SouthWest LatLong `json:"southwest"`
}

func Lookup

func Lookup(ctx *context.Context, address string) ([]Rect, error)

Lookup returns rectangles for the given address. Currently the only implementation is the Google geocoding service.

Jump to

Keyboard shortcuts

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