Class LocationId
java.lang.Object
com.timeanddate.services.dataTypes.places.LocationId
- Author:
- Cato Auestad <cato@timeanddate.com>
-
Constructor Summary
ConstructorsConstructorDescriptionLocationId(int numericId)
Create a LocationId based on an internal integer IDLocationId(Coordinates coordinates)
Create a LocationId based on coordinatesLocationId(LocationRef ref)
LocationId(Place place)
LocationId(String textualId)
Create a LocationId based on a textual ID -
Method Summary
-
Constructor Details
-
LocationId
Create a LocationId based on a textual ID- Parameters:
textualId
- Can be country code, country name, city, etc
-
LocationId
public LocationId(int numericId)Create a LocationId based on an internal integer ID- Parameters:
numericId
- Usually an integer ID that is returned from a previous API call
-
LocationId
Create a LocationId based on coordinates- Parameters:
coordinates
- Provide an coordinate object to LocationId.
-
LocationId
-
LocationId
-
-
Method Details
-
getId
-
getCoordinates
- Throws:
NullPointerException
-
Cast
-