nidus-sync/db/geo.go
2026-03-21 19:41:51 +00:00

31 lines
373 B
Go

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,
}
}