Interface LocationCustomField
- All Superinterfaces:
ICustomField
- All Known Implementing Classes:
LocationCustomFieldImpl
Location Custom Field
Represents a location of a task.-
Method Summary
Modifier and TypeMethodDescriptionfloatGet the latitude of the location.floatGet the longitude of the location.The place ID of the location.default CustomFieldTypegetType()Returns the type of this custom field.@NotNull StringgetValue()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:
getValuein 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:ICustomFieldReturns the type of this custom field. This will be one ofCustomFieldType.- Specified by:
getTypein interfaceICustomField- Returns:
- the type of this custom field
-