model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLatLngNeedsExactlyTwoValues = errors.New("LatLng needs exactly two values")

Functions

This section is empty.

Types

type Exif

type Exif struct {
	Date        time.Time      `json:"date,omitempty"`
	Data        map[string]any `json:"data,omitempty"`
	Coordinates *LatLng        `json:"coordinates,omitempty"`
}

func (Exif) GetCity added in v0.8.0

func (e Exif) GetCity() string

func (Exif) GetCountry added in v0.8.0

func (e Exif) GetCountry() string

func (Exif) GetRawCoordinates added in v0.8.0

func (e Exif) GetRawCoordinates() string

func (Exif) GetString added in v0.8.0

func (e Exif) GetString(key string) string

func (Exif) HasAddress added in v0.8.0

func (e Exif) HasAddress() bool

func (Exif) HasData added in v0.5.0

func (e Exif) HasData() bool

func (Exif) IsZero

func (e Exif) IsZero() bool

type LatLng added in v0.8.0

type LatLng [2]float64

func ParseLatLng added in v0.8.0

func ParseLatLng(raw string) (LatLng, error)

Jump to

Keyboard shortcuts

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