providers

package
v0.0.0-...-54c4a1d Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TypeMcDonalds = "mcdonalds"

Variables

View Source
var AllProviders = []string{
	TypeMcDonalds,
}

Functions

This section is empty.

Types

type Location

type Location struct {
	Type          string     `json:"type"`
	Address       string     `json:"address"`
	Lat           float64    `json:"lat"`
	Lng           float64    `json:"lng"`
	DistanceMiles float64    `json:"distance_miles"`
	IsOpen        bool       `json:"is_open"`
	OpenTime      *time.Time `json:"open_time"`
	CloseTime     *time.Time `json:"close_time"`
}

type Provider

type Provider interface {
	GetLocations(lat float64, lng float64, radiusMi float64, maxResults int) ([]Location, error)
}

func NewMcDonalds

func NewMcDonalds() Provider

Jump to

Keyboard shortcuts

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