@Deprecated
public interface LocationManager
LocationManager provides methods to retrieve, update, create and update locations.| Modifier and Type | Method and Description |
|---|---|
Location |
addLocation(java.lang.String groupPath,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean autoSave)
Deprecated.
Adds a location to the location group.
|
Location |
getLocation(java.lang.String path)
Deprecated.
Returns the location based on its path.
|
java.util.List<Location> |
getLocations(java.lang.String groupPath)
Deprecated.
Returns the locations belonging to a location group.
|
java.util.List<Location> |
rankLocations(java.lang.String groupPath,
Coordinates origin,
boolean geocode)
Deprecated.
Returns a sorted list of locations ranked by closest distance to origin coordinates.
|
void |
removeLocation(Location location,
boolean autoSave)
Deprecated.
Removes the location.
|
Location |
updateLocation(Location location,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean autoSave)
Deprecated.
Updates the location.
|
java.util.List<Location> getLocations(java.lang.String groupPath)
groupPath - The location group pathnull if there are nonejava.util.List<Location> rankLocations(java.lang.String groupPath, Coordinates origin, boolean geocode)
groupPath - The location group pathorigin - Latitude and longitude coordinates to rank locations againstgeocode - Flag that indicates if each location should be geocoded if it does not have stored coordinatesLocation getLocation(java.lang.String path)
path - The location pathnull if it does not existvoid removeLocation(Location location, boolean autoSave) throws AddressException
location - The location addressautoSave - If true the operation is persistedAddressException - when the operation fails.java.lang.IllegalArgumentException - when the location is nullLocation addLocation(java.lang.String groupPath, java.util.Map<java.lang.String,java.lang.Object> properties, boolean autoSave) throws AddressException
groupPath - The location group pathproperties - The location propertiesautoSave - If true the operation is persistedAddressException - when the operation fails.Location updateLocation(Location location, java.util.Map<java.lang.String,java.lang.Object> properties, boolean autoSave) throws AddressException
location - The location addressproperties - The location propertiesautoSave - If true the operation is persistedAddressException - when the operation fails.java.lang.IllegalArgumentException - when the location is nullCopyright © 2010 - 2023 Adobe. All Rights Reserved