location

package
v0.0.0-...-843cdbd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExLocSet

type ExLocSet struct {
	Yes     bool     `bson:"yes" json:"yes"`
	ExLoc   []Item   `bson:"exLoc" json:"exLoc"`     //新增或者更新的
	Removed []string `bson:"removed" json:"removed"` //需要删除的
}

type Item

type Item struct {
	Code string `bson:"code" json:"code"`
	Seq  int    `bson:"seq" json:"seq"`
	Loc  Loc    `bson:"loc" json:"loc"`
}

func (Item) GetCode

func (m Item) GetCode() string

func (Item) GetSeq

func (m Item) GetSeq() int

func (Item) Verify

func (m Item) Verify() *errors.Error

type Loc

type Loc struct {
	Lon float64 `bson:"lon" json:"lon"`
	Lat float64 `bson:"lat" json:"lat"`
}

func LocOf

func LocOf(lon float64, lat float64) Loc

func (*Loc) Verify

func (loc *Loc) Verify() *errors.Error

type Set

type Set struct {
	Yes bool `bson:"yes" json:"yes"`
	Loc *Loc `bson:"loc" json:"loc"`
}

Jump to

Keyboard shortcuts

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