package
0.0.0-20210513140518-9ea16668b0a1
Repository: https://github.com/iot-for-tillgenglighet/api-transportation.git
Documentation: pkg.go.dev

# Functions

NewBoundingBoxFromRectangles creates a new instance of a Rectangle by creating a union of two others.
NewDatabaseConnection creates and returns a new instance of the Datastore interface.
NewPoint creates a new point instance to encapsulate the provided coordinate.
NewPostgreSQLConnector opens a connection to a postgresql database.
NewRectangle takes two Points and returns a new Rectangle instance.
NewSQLiteConnector opens a connection to a local sqlite database.

# Structs

Point encapsulates a WGS84 coordinate.
Rectangle is a rectangle shaped box based on a NW and a SE coordinate.

# Interfaces

Datastore is an interface that is used to inject the database into different handlers to improve testability.
Road is a road.
RoadSegment is a road segment.
RoadSegmentLine represents a straight part of a road segment.

# Type aliases

ConnectorFunc is used to inject a database connection method into NewDatabaseConnection.