database

package
v0.0.0-...-1101e8a Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2016 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSMData

type OSMData struct {
	Nodes     []element.Node
	Ways      []element.Way
	Relations []element.Relation
}

type OSMDatabase

type OSMDatabase interface {
	WriteNodes(Nodes chan element.Node) error
	WriteNodeTags(Nodes chan element.Node) error

	WriteWays(Ways chan element.Way) error
	WriteWayNodes(Ways chan element.Way) error
	WriteWayTags(Ways chan element.Way) error

	WriteRelation(Relations chan element.Relation) error
	WriteRelationTags(Relations chan element.Relation) error
	WriteRelationMembers(Relations chan element.Relation) error

	GetEverythingWithinCoordinates(FromLong, FromLat, ToLong, ToLat int) (*OSMData, error)

	NewTransaction() error
	Commit() error
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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