tile38

package
v0.0.0-...-9cd9649 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Apache-2.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 Data

type Data struct {
	Object []Object `json:"data"`
}

func FromScan

func FromScan(client *redis.Client, name string) (Data, error)

func (Data) ToJsonString

func (tile38Data Data) ToJsonString() (string, error)

type Object

type Object struct {
	Id     string    `json:"id"`
	Object SubObject `json:"object"`
}

func GetDataLocation

func GetDataLocation(client *redis.Client, typeLocation string, id string) (Object, error)

type SubObject

type SubObject struct {
	Type        string    `json:"type"`
	Coordinates []float64 `json:"coordinates"`
}

func FromLocation

func FromLocation(location model.Location) SubObject

func (SubObject) Lat

func (tile38SubObject SubObject) Lat() float64

func (SubObject) Lng

func (tile38SubObject SubObject) Lng() float64

Jump to

Keyboard shortcuts

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