gps

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DifferenceBetween

func DifferenceBetween(r1, r2 *Reading) float32

func IsValidIdentifier

func IsValidIdentifier(id identifier.Identifier) bool

Types

type Reading

type Reading struct {
	Id string `json:"id" bson:"id"`

	// Device Details
	DeviceId id.Identifier `json:"deviceId" bson:"deviceId"`

	// Owner Details
	OwnerPartyType    party.Type    `json:"ownerPartyType" bson:"ownerPartyType"`
	OwnerId           id.Identifier `json:"ownerId" bson:"ownerId"`
	AssignedPartyType party.Type    `json:"assignedPartyType" bson:"assignedPartyType"`
	AssignedId        id.Identifier `json:"assignedId" bson:"assignedId"`

	// Reading Details
	MessageId id.Identifier `json:"messageId" bson:"messageId"`
	TimeStamp int64         `json:"timeStamp" bson:"timeStamp"`
	Latitude  float32       `json:"latitude" bson:"latitude"`
	Longitude float32       `json:"longitude" bson:"longitude"`
}

func (*Reading) SetId

func (r *Reading) SetId(id string)

Jump to

Keyboard shortcuts

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