Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Coordinate ¶
type CoordinatePath ¶
type GeoDB ¶
type GeoDB interface { // Returns the point closest to the coordinates // in the road network, based on geoindexed data. QueryClosestPoint(point Coord, country string) (CHNode, error) // Transforms the nodes from the graph nodes, // which are indexed by integers, and returns the corresponding // coordinates. QueryCoordinates(nodes []int, country string) ([]Coord, error) // Gets an address using fuzzy search. Uses the street and city at // the moment. QueryFuzzyAddress(address Address, count int) ([]Location, error) // Calculates the distance between edges. If the array nodes is indexed // with the variable i, then edge pairs are formed like thus (i, i+1), (i+1, i+2) // and so on. QueryDistance(nodes []int, country string) (int, error) // Returns the server status, nil if everything works fine. QueryStatus() error }
GeoDB implements a database abstraction layer that hides all functionality related to databases.
type Location ¶
type Location struct { Address Address Coordinate Coordinate }
type PathsInput ¶
Click to show internal directories.
Click to hide internal directories.