Search for stores by country/postal code and optionally by additional
filter criteria. This method is analagous to
searchStoresByCoordinates(Number, Number, String, Number, String, Object...)
but identifies a location on the earth indirectly using country and
postal code. The method will look first in the saved geolocations of the
system to find a geolocation matching the passed country and postal code.
If none is found, this method will return an empty map. If one is found,
it will use the latitude/longitude of the found geolocation as the center
of the search.
Parameters:
countryCode
-
The country code for the search area, must not be null.
postalCode
-
The postal code for the center of the search area, must not be null.
distanceUnit
-
The distance unit to be used for the calculation. Supported values are 'mi' and 'km' (for miles and kilometers respectively). If an invalid value is passed then 'km' will be used.
maxDistance
-
Area (radius) in DistanceUnit where Stores will be searched for. If null is passed, a system default is used.
queryString
-
An optional search querystring which provides additional criteria to filter stores by.
args
-
The arguments providing the dynamic values to the querystring.