summaryrefslogtreecommitdiffstats
path: root/internal/models/bssid.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/bssid.go')
-rw-r--r--internal/models/bssid.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/models/bssid.go b/internal/models/bssid.go
new file mode 100644
index 0000000..a5e00bc
--- /dev/null
+++ b/internal/models/bssid.go
@@ -0,0 +1,23 @@
+package models
+
+type BSSIDParams struct {
+ BSSID string
+ All bool
+ Google bool
+ OSM 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"`
+ GoogleMap string `json:"google_map,omitempty"`
+ OpenStreetMap string `json:"openstreetmap,omitempty"`
+}
+
+type BSSIDLookupResponse []BSSIDResult