Interface LocationCustomField
- All Superinterfaces:
ICustomField
- All Known Implementing Classes:
LocationCustomFieldImpl
Location Custom Field
Represents a location of a task.-
Method Summary
Modifier and TypeMethodDescriptionfloat
Get the latitude of the location.float
Get the longitude of the location.The place ID of the location.default CustomFieldType
getType()
Returns the type of this custom field.@NotNull String
getValue()
Returns the value of the formatted address.Methods inherited from interface pw.chew.clickup4j.api.entities.customfields.ICustomField
getClickUp4j, getId, getName, getTimeCreated, isRequired
-
Method Details
-
getValue
Returns the value of the formatted address. This is the address that is displayed in the UI.To actually get the latitude and longitude, use
getLatitude()
andgetLongitude()
.- Specified by:
getValue
in interfaceICustomField
- Returns:
- the location
-
getLatitude
float getLatitude()Get the latitude of the location.- Returns:
- the latitude
-
getLongitude
float getLongitude()Get the longitude of the location.- Returns:
- the longitude
-
getPlaceId
String getPlaceId()The place ID of the location.- Returns:
- the place ID
-
getType
Description copied from interface:ICustomField
Returns the type of this custom field. This will be one ofCustomFieldType
.- Specified by:
getType
in interfaceICustomField
- Returns:
- the type of this custom field
-