locate

package
v0.0.0-...-0ba4654 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APInfo

type APInfo struct {
	BSSID string `json:"bssid"`
	RSSI  int64  `json:"rssi"` // Recieved Signal Strength Indicator
}

APInfo is useful info of WIFI AP for location

type APVector

type APVector interface {
	GetVecVal(dimension int) int64
	GetLocation() (float64, float64)
}

APVector define a general mode to get vector value

type LocationInfo

type LocationInfo struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

type Locator

type Locator interface {
	// Locate device by compute current apList1 with apList2 in database.
	Locate(APVector, []APVector) LocationInfo
}

Locator is common interface of all locate algorithms

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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