Interface ILocation
position
with coordinates (latitude
, longitude
, altitude
). But also information about the location's address.
To separate different locations a location type
is provided.- API:
- This is a public API.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocationBuilder
create
(GeoPosition position) Use to creates a new locationThe postal address that belongs to the location.getName()
The name of the location.getNote()
Additional information related to the location that may be of any help.The creation timestamp of the location.getType()
The type of the location.
-
Method Details
-
create
Use to creates a new location
Example:
import ch.ivyteam.ivy.location.GeoPosition; import ch.ivyteam.ivy.location.LocationBuilder; GeoPosition ivyTeamOffice = GeoPosition.inDegrees(47.171573, 8.516835); LocationBuilder builder = ILocation.create(ivyTeamOffice).withNote("My work place") ivy.session.getSessionUser().locations().add(builder);
- Parameters:
position
-- Returns:
- location builder
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getPosition
GeoPosition getPosition()- Returns:
- geo-position
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getName
String getName()The name of the location. E.g. the name of the contact person or a brief description of the location (e.g.
ivyTeam HQ
,Church
,Chrysler Building
).- Returns:
- name
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getAddress
String getAddress()The postal address that belongs to the location.
- Returns:
- postal address
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getNote
String getNote()Additional information related to the location that may be of any help.
- Returns:
- note
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getType
String getType()The type of the location.
There are some predefined constants for the type of a location (see
ILocation.Type.USER_POSITION
). Feel free to invent your own.- Returns:
- type
- See Also:
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-
getTimestamp
Date getTimestamp()The creation timestamp of the location.
- Returns:
- timestamp
- API:
- This public API is available in IvyScript and Java. It has the visibility EXPERT.
-