Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Dec 14, 2020
1 parent ad5ab99 commit 2b81e64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ _Please write me_
```
type SpatialDatabase interface {
IndexFeature(context.Context, wof_geojson.Feature) error
PointInPolygon(context.Context, geom.Coord, filter.Filter) (spr.StandardPlacesResults, error)
PointInPolygonCandidates(context.Context, geom.Coord) (*geojson.GeoJSONFeatureCollection, error)
PointInPolygonWithChannels(context.Context, geom.Coord, filter.Filter, chan spr.StandardPlacesResult, chan error, chan bool)
PointInPolygonCandidatesWithChannels(context.Context, geom.Coord, chan geojson.GeoJSONFeature, chan error, chan bool)
StandardPlacesResultsToFeatureCollection(context.Context, spr.StandardPlacesResults) (*geojson.GeoJSONFeatureCollection, error)
PointInPolygon(context.Context, *geom.Coord, ...filter.Filter) (spr.StandardPlacesResults, error)
PointInPolygonCandidates(context.Context, *geom.Coord) (*geojson.FeatureCollection, error)
PointInPolygonWithChannels(context.Context, chan spr.StandardPlacesResult, chan error, chan bool, *geom.Coord, ...filter.Filter)
PointInPolygonCandidatesWithChannels(context.Context, *geom.Coord, chan *geojson.Feature, chan error, chan bool)
StandardPlacesResultsToFeatureCollection(context.Context, spr.StandardPlacesResults) (*geojson.FeatureCollection, error)
Close(context.Context) error
}
```
Expand All @@ -150,7 +150,7 @@ type SpatialDatabase interface {
type PropertiesReader interface {
IndexFeature(context.Context, wof_geojson.Feature) error
PropertiesResponseResultsWithStandardPlacesResults(context.Context, spr.StandardPlacesResults, []string) (*PropertiesResponseResults, error)
AppendPropertiesWithFeatureCollection(context.Context, *geojson.GeoJSONFeatureCollection, []string) error
AppendPropertiesWithFeatureCollection(context.Context, *geojson.FeatureCollection, []string) error
Close(context.Context) error
}
```
Expand All @@ -161,4 +161,6 @@ type PropertiesReader interface {
* https://github.com/whosonfirst/go-whosonfirst-spatial-sqlite
* https://github.com/whosonfirst/go-whosonfirst-spatial-http
* https://github.com/whosonfirst/go-whosonfirst-spatial-http-sqlite
* https://github.com/whosonfirst/go-whosonfirst-spatial-grpc
* https://github.com/whosonfirst/go-whosonfirst-spatial-grpc
* https://github.com/whosonfirst/go-whosonfirst-geojson-v2
* https://github.com/paulmach/go.geojson
1 change: 0 additions & 1 deletion database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/skelterjohn/geom"
wof_geojson "github.com/whosonfirst/go-whosonfirst-geojson-v2"
"github.com/whosonfirst/go-whosonfirst-spatial/filter"
// "github.com/whosonfirst/go-whosonfirst-spatial/geojson"
"github.com/paulmach/go.geojson"
"github.com/whosonfirst/go-whosonfirst-spr"
"net/url"
Expand Down

0 comments on commit 2b81e64

Please sign in to comment.