Documentation
¶
Index ¶
- Constants
- Variables
- func DataPointToCSV(dataPoint DataPoint) string
- func DataPointToJSON(dataPoint DataPoint) string
- func GANToColor(gan int) color.Color
- func IsCSVLine(line string) bool
- func IsJSONLine(line string) bool
- func IsUsableRSSI(rssi int) bool
- func MapByMeasurement(dataPoints []DataPoint) map[string][]DataPoint
- func MapByUTMField(dataPoints []DataPoint) map[string][]DataPoint
- func ParseDecOrHex(s string) (uint32, error)
- func RSSIToGAN(rssi int) int
- func ReadLines(in io.Reader) ([]string, error)
- func SortRSSI(rssi1, rssi2, alt int) int
- type CellInfo
- type DataPoint
- type Filter
- type FilterFunc
- type Position
- type UTMField
Constants ¶
View Source
const NoGAN = -3
View Source
const NoSignal = 99
Variables ¶
View Source
var ( NoGANColor = color.RGBA{R: 0, G: 0, B: 0, A: 255} GANMinus2Color = color.RGBA{R: 139, G: 0, B: 0, A: 255} GANMinus1Color = color.RGBA{R: 220, G: 20, B: 60, A: 255} GAN0Color = color.RGBA{R: 255, G: 140, B: 0, A: 255} GAN1Color = color.RGBA{R: 255, G: 215, B: 0, A: 255} GAN2Color = color.RGBA{R: 154, G: 205, B: 50, A: 255} GAN3Color = color.RGBA{R: 34, G: 139, B: 34, A: 255} GAN4Color = color.RGBA{R: 0, G: 100, B: 0, A: 255} )
View Source
var NoPosition = Position{}
View Source
var ZeroDataPoint = DataPoint{}
Functions ¶
func DataPointToCSV ¶
func DataPointToJSON ¶
func GANToColor ¶ added in v1.2.0
func IsJSONLine ¶
func IsUsableRSSI ¶ added in v1.2.0
func MapByMeasurement ¶ added in v1.1.0
func MapByUTMField ¶ added in v1.1.0
func ParseDecOrHex ¶
Types ¶
type DataPoint ¶
type DataPoint struct {
Latitude float64 `json:"lat"`
Longitude float64 `json:"lon"`
Satellites int `json:"sats"`
Timestamp time.Time `json:"ts"`
LAC uint32 `json:"lac"`
Carrier uint32 `json:"carrier"`
RSSI int `json:"rssi"`
Cx int `json:"cx"`
}
func ParseCSVLine ¶
func ParseJSONLine ¶
func SortByRSSI ¶ added in v1.1.0
func SortByTimestamp ¶
func (DataPoint) MeasurementID ¶ added in v1.1.0
type Filter ¶
func FilterBestServer ¶
func FilterBestServer() Filter
func FilterByCarrier ¶ added in v1.2.0
func FilterByLAC ¶
type FilterFunc ¶
func (FilterFunc) Filter ¶
func (f FilterFunc) Filter(dataPoints []DataPoint) []DataPoint
type Position ¶ added in v1.2.0
func (Position) ToUTMField ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.