WIP migration of API from fieldseeker-sync

This commit is contained in:
Eli Ribble 2025-12-16 16:37:53 +00:00
parent af6328faed
commit 8e325b7c77
26 changed files with 2960 additions and 102 deletions

32
db/geo.go Normal file
View file

@ -0,0 +1,32 @@
package db
import (
)
type GeoBounds struct {
East float64
North float64
South float64
West float64
}
type GeoQuery struct {
Bounds GeoBounds
Limit int
}
func NewGeoBounds() GeoBounds {
return GeoBounds{
East: 180,
North: 180,
South: -180,
West: -180,
}
}
func NewGeoQuery() GeoQuery {
return GeoQuery{
Bounds: NewGeoBounds(),
Limit: 0,
}
}