@KwrkImmutable @CompileStatic class Location extends Object implements PostMapConstructorCheckable
Represents a location data as specified by UN/LOCODE standard.
Useful references:Type | Name and description |
---|---|
static Location |
UNKNOWN_LOCATION |
InternationalizedName |
countryName The name of the country to which this location belongs. |
InternationalizedName |
name Location name expressed in their natural language if possible. |
PortCapabilities |
portCapabilities Capabilities of a port. |
UnLoCode |
unLoCode |
UnLoCodeCoordinates |
unLoCodeCoordinates 12-character coordinates string for the UN/LOCODE location. |
UnLoCodeFunction |
unLoCodeFunction 8-character function classifier code for the UN/LOCODE location. |
Constructor and description |
---|
Location() |
The name of the country to which this location belongs.
Location name expressed in their natural language if possible.
Original UnLoCode spec defines character set as: "Roman alphabet using the 26 characters of the character set adopted for international trade data interchange, with diacritic signs, when practicable". However, we are using UTF-8 so all location names can be fully specified in their natural language.Capabilities of a port.
It supplements information fromunLoCodeFunction
with a list of port features.
12-character coordinates string for the UN/LOCODE location.
8-character function classifier code for the UN/LOCODE location.
Groovy Documentation