diff --git a/api/parameters/parameters.go b/api/parameters/parameters.go index 4d6d60b1..80c54f97 100644 --- a/api/parameters/parameters.go +++ b/api/parameters/parameters.go @@ -4,7 +4,6 @@ import ( "errors" "github.com/aaronland/go-http-sanitize" "github.com/skelterjohn/geom" - geojson_utils "github.com/whosonfirst/go-whosonfirst-geojson-v2/utils" "github.com/whosonfirst/go-whosonfirst-spatial/geo" "net/http" "strconv" @@ -75,13 +74,7 @@ func Coordinate(req *http.Request) (*geom.Coord, error) { return nil, err } - coord, err := geojson_utils.NewCoordinateFromLatLons(lat, lon) - - if err != nil { - return nil, err - } - - return &coord, err + return geo.NewCoordinate(lon, lat) } func Properties(req *http.Request) ([]string, error) { diff --git a/bin/go-bindata b/bin/go-bindata index d7843e7d..de0446f7 100755 Binary files a/bin/go-bindata and b/bin/go-bindata differ diff --git a/bin/go-bindata-assetfs b/bin/go-bindata-assetfs index 89dc6389..4fa9e3b0 100755 Binary files a/bin/go-bindata-assetfs and b/bin/go-bindata-assetfs differ diff --git a/go.mod b/go.mod index 52161168..7546f418 100644 --- a/go.mod +++ b/go.mod @@ -10,10 +10,8 @@ require ( github.com/aaronland/go-http-tangramjs v0.0.7 github.com/rs/cors v1.7.0 github.com/skelterjohn/geom v0.0.0-20180103142417-96f3e8a219c5 - github.com/whosonfirst/algnhsa v0.1.0 // indirect github.com/whosonfirst/go-bindata v0.1.0 github.com/whosonfirst/go-bindata-assetfs v1.0.1 - github.com/whosonfirst/go-whosonfirst-geojson-v2 v0.12.3 github.com/whosonfirst/go-whosonfirst-index v0.3.2 github.com/whosonfirst/go-whosonfirst-placetypes v0.2.4 github.com/whosonfirst/go-whosonfirst-spatial v0.0.4