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, ...) (*orb_geojson.FeatureCollection, error)
- func ToFeatureCollectionWithJSON(ctx context.Context, body []byte, opts *ToFeatureCollectionOptions) (*orb_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) (*orb_geojson.FeatureCollection, error)
func ToFeatureCollectionWithJSON ¶
func ToFeatureCollectionWithJSON(ctx context.Context, body []byte, opts *ToFeatureCollectionOptions) (*orb_geojson.FeatureCollection, error)
Types ¶
type AsFeatureCollectionOptions ¶
type AsFeatureCollectionOptions struct {
Reader reader.Reader
Writer io.Writer
SPRPathResolver SPRPathResolver
JSONPathResolver JSONPathResolver
}
type JSONPathResolver ¶
func JSONPathResolverFunc ¶
func JSONPathResolverFunc(gjson_path string) JSONPathResolver
func JSONPathResolverFuncWithCallback ¶
func JSONPathResolverFuncWithCallback(gjson_path string, cb JSONPathResolverCallback) JSONPathResolver
type SPRPathResolver ¶
func NewSPRPathResolverFunc ¶
func NewSPRPathResolverFunc(ctx context.Context, uri string) (SPRPathResolver, error)
func WhosOnFirstIdSPRPathResolverFunc ¶
func WhosOnFirstIdSPRPathResolverFunc() SPRPathResolver
func WhosOnFirstSpatialSPRPathResolverFunc ¶
func WhosOnFirstSpatialSPRPathResolverFunc() SPRPathResolver
type ToFeatureCollectionOptions ¶
type ToFeatureCollectionOptions struct {
SPRPathResolver SPRPathResolver
JSONPathResolver JSONPathResolver
Reader reader.Reader
}
Click to show internal directories.
Click to hide internal directories.