maps

package
v0.0.0-...-d72eed1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2014 License: GPL-2.0 Imports: 3 Imported by: 1

README

maps

Google maps API common methods.

API Documentation

Documentation

Overview

Package maps implements common Google Maps API features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressLocation

type AddressLocation struct {
	Address string `json:"address"`
}

AddressLocation represents a location as an address string.

func (AddressLocation) EncodeValues

func (location AddressLocation) EncodeValues(key string, v *url.Values) error

EncodeValues encodes AddressLocation into URL form.

type Geometry

type Geometry struct {
	Location LatLngLocation `json:"location"`
}

Geometry represents location geometry.

type LatLngLocation

type LatLngLocation struct {
	Latitude  float64 `json:"lat"`
	Longitude float64 `json:"lng"`
}

LatLngLocation represents a location as latlng coordinates.

func (LatLngLocation) EncodeValues

func (location LatLngLocation) EncodeValues(key string, v *url.Values) error

EncodeValues encodes LatLngLocation into URL form.

type Location

type Location interface {
	EncodeValues(key string, v *url.Values) error
}

Location interface for various ways to structure locations.

type Locations

type Locations []Location

Locations is a slice of Location interfaces.

func (Locations) EncodeValues

func (locations Locations) EncodeValues(key string, v *url.Values) error

EncodeValues encodes a slice of Location interfaces into URL form.

Directories

Path Synopsis
Package distancematrix computes a distance matrix between points using Google's API.
Package distancematrix computes a distance matrix between points using Google's API.
Package geocoding implements simple geocoding functions.
Package geocoding implements simple geocoding functions.
Package places implements Google's Places API.
Package places implements Google's Places API.
nearbysearch
Package nearbysearch implements Google Place's Nearby Search API.
Package nearbysearch implements Google Place's Nearby Search API.

Jump to

Keyboard shortcuts

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