Package com.timeanddate.services
Class PlacesService
java.lang.Object
com.timeanddate.services.BaseService
com.timeanddate.services.PlacesService
- Author:
- Cato Auestad <cato@timeanddate.com>
-
Field Summary
Fields inherited from class com.timeanddate.services.BaseService
Language, ServiceName, Version
-
Constructor Summary
ConstructorsConstructorDescriptionPlacesService(String accessKey, String secretKey)
The places service can be used to retrieve the list of supported places. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets list of supported placesvoid
setIncludeCoordinates(boolean bool)
-
Constructor Details
-
PlacesService
The places service can be used to retrieve the list of supported places. The ids for the places are then used in the other services to indicate the location to be queried.- Parameters:
accessKey
- Access key.secretKey
- Secret key.- Throws:
AuthenticationException
- Encryption of the authentication failed
-
-
Method Details
-
getPlaces
Gets list of supported places- Returns:
- The places
- Throws:
ServerSideException
- The server produced an error message
-
setIncludeCoordinates
public void setIncludeCoordinates(boolean bool) -
getIncludeCoordinates
public boolean getIncludeCoordinates()
-