LocalizedRoadNumbers
public struct LocalizedRoadNumbers : Hashable
The list of multiple names or titles for the same entity, possibly in different languages.
-
The list of road number information items. Recommended to use helper methods instead of directly accessing the items.
Declaration
Swift
public var items: [LocalizedRoadNumber] -
Creates a new instance.
Declaration
Swift
public init() -
Returns best name or title to be presented to the user according to specified locales. The locales are expected to be ordered by priority. If no matching locale found - the default is returned. In case of empty list returns
nil.Declaration
Swift
public func preferredValue(for locales: [Locale]) -> String?Parameters
localesLocales
Return Value
The best name or title to be presented to the user according to specified locales, default or
nilif list is empty. -
Returns the default value.
Declaration
Swift
public func defaultValue() -> String?Return Value
The default value or null` if list is empty.