Find the next coupon location (sorted by the distance) based on a given filter.
Syntax
List< CouponTypeLocation >
findNextCouponTypes
(
BigDecimal
latitude
,
BigDecimal
longitude
,
Integer
radius
,
Long
categoryId
,
List< String >
tag
,
Integer
maxRecords
)
Parameters
-
latitude –
mandatory latitude in GPS format
-
longitude –
mandatory longitude in GPS format
-
radius –
optional filter on radius in meter around the GPS coordinate
-
categoryId –
optional filter on a category
-
tag –
optional filter on a tag
-
maxRecords –
optional maximum number of records. Default and maximum is 100
Returns
the location type. The returned radius is the distance to the coordinate in meter
Usage
the location type. The returned radius is the distance to the coordinate in meter