WIP migration of API from fieldseeker-sync
This commit is contained in:
parent
af6328faed
commit
8e325b7c77
26 changed files with 2960 additions and 102 deletions
32
db/geo.go
Normal file
32
db/geo.go
Normal 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,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue