TimeRequest
public class TimeRequest : RequestObject
Tie Service Request
var timeRequest = TimeRequest()
timeRequest.placeId = "norway/oslo"
-
Specify the ID of the location you would like to get the current time from. To retrieve the time for multiple places, the corresponding IDs can either be specified as a comma separated list, or by supplying the parameter multiple times (or any combination). There is a limit of maximum 25 locations per requests.
Precondition
placeid parameter must be specifiedNote
It is also possible to specify coordinates or IATA/ICAO codes for airports, see the documentation for the type Location Id for detailed information.Declaration
Swift
public var placeId: String!
-
Maximum number of query results to be returned. This number may be further limited by access key specific restrictions.
Precondition
only values from 0-200 acceptedDeclaration
Swift
public var qLimit: Int?
-
Return longitude and latitude for the geo object.
Declaration
Swift
public var geo: Bool
-
The preferred language for the esponses. An error will be raised if the language code cannot be recognized. In case the text for a specific event cannot be retrieved in the requested language it will be returned in English instead. This is also the default language.
Note
Due to technical limitations, time zone names cannot be translated at the moment.Declaration
Swift
public var lang: String
-
Search radius for translating coordinates (parameter placeid) to locations. Coordinates that could not be translated will yield results for the actual geographical position.
Declaration
Swift
public var radius: Int?
-
Controls if the astronomy element with information about sunrise and sunset shall be added to the result.
Declaration
Swift
public var sun: Bool
-
Adds current time under the location object.
Declaration
Swift
public var time: Bool
-
Add a list of time changes during the year to the location object. This listing e.g. shows changes caused by daylight savings time.
Declaration
Swift
public var timechanges: Bool
-
Add time zone information under the time object.
Declaration
Swift
public var tz: Bool
-
Adds verbose time specification to all ISO 8601 time stamps.
Declaration
Swift
public var verbosetime: Bool