mapper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	Name             string `json:"name"`
	PlaceID          string `json:"place_id"`
	FormattedAddress string `json:"formatted_address"`
}

type PlaceDetail

type PlaceDetail struct {
	Result placeDetailResult `json:"result"`
}

type Service

type Service interface {
	PlaceSearch(string) ([]Candidate, error)
	HaveGmapsKey() bool
	PlaceDetails(string) (PlaceDetail, error)
}

Service provides mapping operations.

func NewService

func NewService(key string) Service

NewService provides a new map service

Jump to

Keyboard shortcuts

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