public interface LocationManager
LocationManager
provides methods to retrieve, update, create and update locations.Modifier and Type | Method and Description |
---|---|
Location |
addLocation(String groupPath,
Map<String,Object> properties,
boolean autoSave)
Adds a location to the location group.
|
Location |
getLocation(String path)
Returns the location based on its path.
|
List<Location> |
getLocations(String groupPath)
Returns the locations belonging to a location group.
|
List<Location> |
rankLocations(String groupPath,
Coordinates origin,
boolean geocode)
Returns a sorted list of locations ranked by closest distance to origin coordinates.
|
void |
removeLocation(Location location,
boolean autoSave)
Removes the location.
|
Location |
updateLocation(Location location,
Map<String,Object> properties,
boolean autoSave)
Updates the location.
|
List<Location> getLocations(String groupPath)
groupPath
- The location group pathnull
if there are noneList<Location> rankLocations(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(String path)
path
- The location pathnull if it does not exist
void removeLocation(Location location, boolean autoSave) throws AddressException
location
- The location addressautoSave
- If true
the operation is persistedAddressException
- when the operation fails.IllegalArgumentException
- when the location is null
Location addLocation(String groupPath, Map<String,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, Map<String,Object> properties, boolean autoSave) throws AddressException
location
- The location addressproperties
- The location propertiesautoSave
- If true
the operation is persistedAddressException
- when the operation fails.IllegalArgumentException
- when the location is null
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"