osm

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxBareClone added in v0.1.1

func CtxBareClone(ctx context.Context) (context.Context, error)

CtxBareClone makes a copy of this context. It also makes sure that non-primitive values like logger are deep-copied.

func CtxSetRewind added in v0.1.1

func CtxSetRewind(ctx context.Context, rewind bool) context.Context

CtxSetRewind sets "rewind" value to this context.

func CtxSetRoot added in v0.1.1

func CtxSetRoot(ctx context.Context, root *osm.Relation) context.Context

CtxSetRoot sets "root" value to this context.

func ErrIsClient added in v0.1.1

func ErrIsClient(err interface{}) bool

ErrIsClient determines if an error thrown by osmapi is client error

func FindSubAreas

func FindSubAreas(ctx context.Context, id int64) (string, error)

FindSubAreas looks for outputs of a sub-area.

func NewContext

func NewContext(ctx context.Context, log shared.Logger, raw bool, separated bool, out string, rewind bool) (context.Context, error)

NewContext is the utility to encapsulate pkg-scoped context values by preventing context key collision.

func SubAreas

func SubAreas(ctx context.Context, str string) error

SubAreas constructs a GeoJSON output of an OpenStreetMap relation ID

func VerifyOutput added in v0.1.1

func VerifyOutput(ctx context.Context, path string) error

VerifyOutput makes sure that output files of a sub-area exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL