blob: 7170c2722ce48f88ba5c6c4dd4a7267b171659cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package models
type BSSIDParams struct {
BSSID string
All bool
Map bool
}
type LocationInfo struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Accuracy int `json:"accuracy"`
}
type BSSIDResult struct {
BSSID string `json:"bssid"`
Location *LocationInfo `json:"location"`
MapURL string `json:"map_url,omitempty"`
}
type BSSIDLookupResponse struct {
BSSID string `json:"bssid"`
Results []BSSIDResult `json:"results"`
MapURL string `json:"map_url,omitempty"`
}
type ErrorResponse struct {
Error string `json:"error"`
}
|