Class LocationId

java.lang.Object
com.timeanddate.services.dataTypes.places.LocationId

public class LocationId extends Object
Author:
Cato Auestad <cato@timeanddate.com>
  • Constructor Details

    • LocationId

      public LocationId(String textualId)
      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

      public LocationId(Coordinates coordinates)
      Create a LocationId based on coordinates
      Parameters:
      coordinates - Provide an coordinate object to LocationId.
    • LocationId

      public LocationId(LocationRef ref)
    • LocationId

      public LocationId(Place place)
  • Method Details