Documentation ¶
Index ¶
- func AppendPropertiesWithJSON(ctx context.Context, opts *PropertiesResponseOptions, source []byte, ...) ([]byte, error)
- func SpatialIdWithFeature(body []byte, extra ...interface{}) (string, error)
- type Filter
- type PointInPolygonCandidate
- type PropertiesResponse
- type PropertiesResponseOptions
- type PropertiesResponseResults
- type SpatialIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendPropertiesWithJSON ¶ added in v0.0.48
func SpatialIdWithFeature ¶ added in v0.0.23
Types ¶
type Filter ¶ added in v0.0.42
type Filter interface { HasPlacetypes(flags.PlacetypeFlag) bool MatchesInception(flags.DateFlag) bool MatchesCessation(flags.DateFlag) bool IsCurrent(flags.ExistentialFlag) bool IsDeprecated(flags.ExistentialFlag) bool IsCeased(flags.ExistentialFlag) bool IsSuperseded(flags.ExistentialFlag) bool IsSuperseding(flags.ExistentialFlag) bool IsAlternateGeometry(flags.AlternateGeometryFlag) bool HasAlternateGeometry(flags.AlternateGeometryFlag) bool }
type PointInPolygonCandidate ¶
type PropertiesResponse ¶
type PropertiesResponse map[string]interface{}
type PropertiesResponseOptions ¶ added in v0.0.51
type PropertiesResponseResults ¶
type PropertiesResponseResults struct {
Properties []*PropertiesResponse `json:"places"` // match spr response
}
func PropertiesResponseResultsWithStandardPlacesResults ¶ added in v0.0.48
func PropertiesResponseResultsWithStandardPlacesResults(ctx context.Context, opts *PropertiesResponseOptions, results spr.StandardPlacesResults) (*PropertiesResponseResults, error)
type SpatialIndex ¶ added in v0.0.28
type SpatialIndex interface { IndexFeature(context.Context, []byte) error RemoveFeature(context.Context, string) error PointInPolygon(context.Context, *orb.Point, ...Filter) (spr.StandardPlacesResults, error) PointInPolygonCandidates(context.Context, *orb.Point, ...Filter) ([]*PointInPolygonCandidate, error) PointInPolygonWithChannels(context.Context, chan spr.StandardPlacesResult, chan error, chan bool, *orb.Point, ...Filter) PointInPolygonCandidatesWithChannels(context.Context, chan *PointInPolygonCandidate, chan error, chan bool, *orb.Point, ...Filter) Disconnect(context.Context) error }
Click to show internal directories.
Click to hide internal directories.