Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CollectionName = "ublox" // название коллекции ExpireAfter = time.Duration(time.Minute * 30) // время жизни элемента кеша MaxDistance float64 = 100000.0 / geo.EarthRadius // дистанция в радианах (метры на радиус Земли) )
View Source
var ( // RequestTimeout описывает время ожидания от сервера, которое используется при инициализации // клиента. RequestTimeout = time.Second * 10 // Servers описывает список серверов для запросов данных. Servers = []string{ "http://online-live1.services.u-blox.com/GetOnlineData.ashx", "http://online-live2.services.u-blox.com/GetOnlineData.ashx", } Pacc = 100000 // расстояние погрешности в метрах )
View Source
var DefaultProfile = Profile{ Datatype: []string{"pos", "eph", "aux"}, Format: "aid", GNSS: []string{"gps"}, FilterOnPos: true, }
DefaultProfile описывает профиль запроса по умолчанию для запросов.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache описывает кеш ответов сервера U-blox с эфемеридами.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client описxывает сервис получения данных.
type Profile ¶
type Profile struct { Datatype []string // A comma separated list of the data types required by the client (eph, alm, aux, pos) Format string // Specifies the format of the data returned (mga = UBX- MGA-* (M8 onwards); aid = UBX-AID-* (u7 or earlier)) GNSS []string // A comma separated list of the GNSS for which data should be returned (gps, qzss, glo) FilterOnPos bool // If present, the ephemeris data returned to the client will only contain data for the satellites which are likely to be visible from the approximate position provided }
Profile описывает профиль возвращаемых данных для данного устройства.
Click to show internal directories.
Click to hide internal directories.