You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/howtos/solutions/geo/getting-started-geo/index-geo-search.mdx
+50-42
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ This section outlines the implementation of the `getStoreProductsByGeoFilter` AP
266
266
267
267
4.**Result Processing**: The function filters out duplicate products across different stores, ensuring unique product listings in the final output. It then formats the store locations into a more readable structure and compiles the final list of products to return.
throw"Mandatory fields like userLocation latitude / longitude missing !"
393
+
} else {
394
+
throw'Mandatory fields like userLocation latitude / longitude missing !';
386
395
}
387
396
388
397
return {
389
398
storeProducts: trimmedStoreProducts,
390
-
productIds:Object.keys(uniqueProductIds)
399
+
productIds: Object.keys(uniqueProductIds),
391
400
};
392
401
};
393
-
394
402
```
395
403
396
404
The implementation demonstrates a practical use case for Redis's Geo Location search capabilities, showcasing how to perform proximity searches combined with other filtering criteria (like product name) and present the results in a user-friendly format.
0 commit comments