googlemaps

package
v0.0.0-...-86b24a5 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	APIKey string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(APIKey string) *Client

func (*Client) GeocodePoints

func (c *Client) GeocodePoints(points []geo.LatLng) ([]GeocodeResult, error)

type GeocodeResult

type GeocodeResult struct {
	LatLng  geo.LatLng            `json:"latlng"`
	Results []GoogleGeocodeResult `json:"results"`
}

type GoogleAddressComponent

type GoogleAddressComponent struct {
	LongName  string   `json:"long_name"`
	ShortName string   `json:"short_name"`
	Types     []string `json:"types"`
}

type GoogleGeocodeResponse

type GoogleGeocodeResponse struct {
	Results []GoogleGeocodeResult `json:"results"`
	Status  string                `json:"status"`
}

type GoogleGeocodeResult

type GoogleGeocodeResult struct {
	AddressComponents []GoogleAddressComponent `json:"address_components"`
}

Jump to

Keyboard shortcuts

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