Documentation ¶
Overview ¶
Package location provides the Location aggregate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Stockholm = Location{SESTO, "Stockholm"} Melbourne = Location{AUMEL, "Melbourne"} Hongkong = Location{CNHKG, "Hongkong"} NewYork = Location{USNYC, "New York"} Chicago = Location{USCHI, "Chicago"} Tokyo = Location{JNTKO, "Tokyo"} Hamburg = Location{DEHAM, "Hamburg"} Rotterdam = Location{NLRTM, "Rotterdam"} Helsinki = Location{FIHEL, "Helsinki"} )
Sample locations.
View Source
var ErrUnknown = errors.New("unknown location")
ErrUnknown is used when a location could not be found.
Functions ¶
This section is empty.
Types ¶
type Location ¶
Location is a location is our model is stops on a journey, such as cargo origin or destination, or carrier movement endpoints.
type Repository ¶
Repository provides access a location store.
type UNLocode ¶
type UNLocode string
UNLocode is the United Nations location code that uniquely identifies a particular location.
http://www.unece.org/cefact/locode/ http://www.unece.org/cefact/locode/DocColumnDescription.htm#LOCODE
Click to show internal directories.
Click to hide internal directories.