-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…e vendor deps
- Loading branch information
There are no files selected for viewing
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 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.