Display the three nearest assets from the user
Someone visiting a foreign city could access your website application that allows users to search where he can find your assets. Using the Woosmap Recommendation, the Web application has access to nearest assets from the user’s approximate position and it is therefore able to rank the returned assets by proximity to the user’s location.
Find the three nearest Coffee Shops
How to Implement the Feature
Please, refer to the Nearest Store topic as the code is the same.
The only differences are the
limit property that changed from
3 when calling the
woosmapRecommendation.getUserRecommendation() and the use of
stores_by_page=3 parameter for search API endpoint.