Documentation ¶
Index ¶
- func AsFeatureCollection(ctx context.Context, rsp spr.StandardPlacesResults, ...) error
- func AsFeatureCollectionWithJSON(ctx context.Context, body []byte, opts *AsFeatureCollectionOptions) error
- func ToFeatureCollection(ctx context.Context, rsp spr.StandardPlacesResults, ...) (*go_geojson.FeatureCollection, error)
- func ToFeatureCollectionWithJSON(ctx context.Context, body []byte, opts *ToFeatureCollectionOptions) (*go_geojson.FeatureCollection, error)
- func WhosOnFirstPathWithString(path string) (string, error)
- type AsFeatureCollectionOptions
- type JSONPathResolver
- type JSONPathResolverCallback
- type SPRPathResolver
- type ToFeatureCollectionOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsFeatureCollection ¶
func AsFeatureCollection(ctx context.Context, rsp spr.StandardPlacesResults, opts *AsFeatureCollectionOptions) error
func AsFeatureCollectionWithJSON ¶
func AsFeatureCollectionWithJSON(ctx context.Context, body []byte, opts *AsFeatureCollectionOptions) error
func ToFeatureCollection ¶
func ToFeatureCollection(ctx context.Context, rsp spr.StandardPlacesResults, opts *ToFeatureCollectionOptions) (*go_geojson.FeatureCollection, error)
func ToFeatureCollectionWithJSON ¶
func ToFeatureCollectionWithJSON(ctx context.Context, body []byte, opts *ToFeatureCollectionOptions) (*go_geojson.FeatureCollection, error)
func WhosOnFirstPathWithString ¶ added in v0.0.2
Types ¶
type AsFeatureCollectionOptions ¶ added in v0.0.2
type AsFeatureCollectionOptions struct { Reader reader.Reader Writer io.Writer SPRPathResolver SPRPathResolver JSONPathResolver JSONPathResolver }
type JSONPathResolver ¶ added in v0.0.2
func JSONPathResolverFunc ¶ added in v0.0.2
func JSONPathResolverFunc(gjson_path string) JSONPathResolver
func JSONPathResolverFuncWithCallback ¶ added in v0.0.2
func JSONPathResolverFuncWithCallback(gjson_path string, cb JSONPathResolverCallback) JSONPathResolver
type JSONPathResolverCallback ¶ added in v0.0.2
type SPRPathResolver ¶ added in v0.0.2
func NewSPRPathResolverFunc ¶ added in v0.0.3
func NewSPRPathResolverFunc(ctx context.Context, uri string) (SPRPathResolver, error)
func WhosOnFirstIdSPRPathResolverFunc ¶ added in v0.0.3
func WhosOnFirstIdSPRPathResolverFunc() SPRPathResolver
func WhosOnFirstSpatialSPRPathResolverFunc ¶ added in v0.0.3
func WhosOnFirstSpatialSPRPathResolverFunc() SPRPathResolver
type ToFeatureCollectionOptions ¶ added in v0.0.2
type ToFeatureCollectionOptions struct { SPRPathResolver SPRPathResolver JSONPathResolver JSONPathResolver Reader reader.Reader }
Click to show internal directories.
Click to hide internal directories.