Finding nearby places using the Geolocation service
Sitecore provides Geolocation-based services out of the box, which can help marketers create a personalized experience. It can also help empower consumers in finding trending products in their region or the nearest service stations.
In this recipe, we will take an example of an electronics product company, which wants to provide the nearest service station details to its visitor.
Getting ready
For this recipe, you should have configured the Sitecore Geolocation service, which you can do in a few steps shown at https://goo.gl/c9OQWj. Also, create some service providers' items with Title
, Address
, City
, Latitude
, and Longitude
fields.
How to do it…
We will first find the latitude and longitude of the ...
Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.