Google Places in Sitecore module is an open source project about Google Places integration with Sitecore. It allows to bring the rich details of points of interests worldwide to a Sitecore-powered website, so that its visitors can easily explore the world around them.
The taken approach is based on SiteCron module providing an advanced execution of scheduled tasks in Sitecore. The solution adheres to Helix principles and consists of:
- Foundation layer with an Importer project implementing the core models, repositories and import processors;
- Project layer with a GooglePlacesImport project implementing the main SiteCron task ..\src\Project\GooglePlacesImport\SitecronTasks\ImportGooglePlaces.cs for importing data from Google Places to a Sitecore website.
Configuration settings are defined via a Sitecore Item ..\src\Project\GooglePlacesImport\Models\GooglePlacesSettings.cs, so that one can easy adjust them for their needs:
- GoogleApiKey - your Google API Key
- GooglePlaceSearchRequest, for example, https://maps.googleapis.com/maps/api/place/findplacefromtext/json?key={0}&input={1}&inputtype=textquery&fields=place_id&locationbias=circle:1000@{2},{3}
- GooglePlaceDetailsByIdRequest, for example, https://maps.googleapis.com/maps/api/place/details/json?key={0}&placeid={1}&fields={2}
- GooglePlaceBasicDataFields, for example, "name,url,formatted_address"
- GooglePlaceBasicDataCacheMinutes, for example, 10080
- GooglePlaceContactDataFields, for example, "formatted_phone_number,opening_hours"
- GooglePlaceContactDataCacheMinutes, for example, 10080
- GooglePlaceAtmosphereDataFields, for example, "rating"
- GooglePlaceAtmosphereDataCacheMinutes, for example, 10080
Hope you found this module useful, your contributions and suggestions will be very much appreciated. Please submit a pull request.
The Google Places in Sitecore module is released under the MIT license what means that you can modify and use it how you want even for commercial use. Please give it a star if you like it and your experience was positive.