Skip to content

Commit

Permalink
update to reflect changes to go-whosonfirst-spatial interfaces; updat…
Browse files Browse the repository at this point in the history
…e vendor deps
  • Loading branch information
whosonfirst committed Aug 11, 2022
1 parent a3dd1a3 commit 6d1b85e
Show file tree
Hide file tree
Showing 706 changed files with 87,083 additions and 91,869 deletions.
18 changes: 9 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module github.com/whosonfirst/go-whosonfirst-spatial-grpc
go 1.16

require (
github.com/sfomuseum/go-flags v0.8.2
github.com/whosonfirst/go-whosonfirst-flags v0.4.2
github.com/whosonfirst/go-whosonfirst-geojson-v2 v0.16.3
github.com/whosonfirst/go-whosonfirst-spatial v0.0.55
github.com/whosonfirst/go-whosonfirst-spatial-pip v0.0.10
github.com/whosonfirst/go-whosonfirst-spatial-rtree v0.0.12
github.com/whosonfirst/go-whosonfirst-spr/v2 v2.0.0
google.golang.org/grpc v1.36.1
google.golang.org/protobuf v1.26.0
github.com/paulmach/orb v0.7.1
github.com/sfomuseum/go-flags v0.8.3
github.com/whosonfirst/go-whosonfirst-flags v0.4.4
github.com/whosonfirst/go-whosonfirst-spatial v0.3.6
github.com/whosonfirst/go-whosonfirst-spatial-pip v0.0.12
github.com/whosonfirst/go-whosonfirst-spatial-rtree v0.2.2
github.com/whosonfirst/go-whosonfirst-spr/v2 v2.2.1
google.golang.org/grpc v1.48.0
google.golang.org/protobuf v1.28.1
)
344 changes: 123 additions & 221 deletions go.sum

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions request/coord.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package request

import (
"github.com/skelterjohn/geom"
geojson_utils "github.com/whosonfirst/go-whosonfirst-geojson-v2/utils"
"github.com/whosonfirst/go-whosonfirst-spatial-grpc/spatial"
"github.com/paulmach/orb"
)

func CoordsFromPointInPolygonRequest(req *spatial.PointInPolygonRequest) (geom.Coord, error) {
func CoordsFromPointInPolygonRequest(req *spatial.PointInPolygonRequest) (orb.Point, error) {

lat := float64(req.Latitude)
lon := float64(req.Longitude)

return geojson_utils.NewCoordinateFromLatLons(lat, lon)
return orb.Point{ lon, lat }, nil
}
3 changes: 2 additions & 1 deletion vendor/github.com/aaronland/go-json-query/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/github.com/aaronland/go-json-query/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/github.com/aaronland/go-json-query/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions vendor/github.com/aaronland/go-json-query/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 48 additions & 0 deletions vendor/github.com/aaronland/go-json-query/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vendor/github.com/aaronland/go-json-query/flags.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/aaronland/go-json-query/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions vendor/github.com/aaronland/go-json-query/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions vendor/github.com/aaronland/go-json-query/query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6d1b85e

Please sign in to comment.