Actually set geom and h3cell for uploaded pools
This commit is contained in:
parent
0659b8993d
commit
ebc329fc5e
3 changed files with 64 additions and 9 deletions
9
platform/geom/geom.go
Normal file
9
platform/geom/geom.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package geom
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func PostgisPointQuery(longitude, latitude float64) string {
|
||||
return fmt.Sprintf("ST_GeometryFromText('Point(%f %f)')", longitude, latitude)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue