Interface StoreLocatorFacade
- All Known Implementing Classes:
DefaultStoreLocatorFacade
public interface StoreLocatorFacade
Store locator facade. Contains methods related to store locator functionality - finding points of services, sorting
them by distance, retrieving details.
-
Method Summary
Modifier and TypeMethodDescriptiongetLocationsForQuery(String searchTerm, int limit) Gets the locations for query.getPOSForLocation(Location location) Gets the point of service for the given location.getPOSForName(String posName) Gets the point of service for name that is unique.
-
Method Details
-
getLocationsForQuery
Gets the locations for query. Returns locations for the given query string that can be postal code or town name. Locations number is limited to the given value.- Parameters:
searchTerm- the search term to look locations for. Can be postal code or town namelimit- the maximum number of returned results- Returns:
- the map of locations
- Throws:
MapServiceException- the map service exception
-
getPOSForName
Gets the point of service for name that is unique.- Parameters:
posName- the pos name- Returns:
- the found point of service
- Throws:
LocationServiceException- ifLocationfor name can not be found
-
getPOSForLocation
Gets the point of service for the given location. If location is distance aware also fills information about distance.- Parameters:
location- the location- Returns:
- the point of service for location
-