All Projects → simonneutert → jquery-google-reviews

simonneutert / jquery-google-reviews

Licence: ISC license
simple jquery Plugin that utilizes Google API to get data from a Place on Google Maps

Programming Languages

CSS
56736 projects

Projects that are alternatives of or similar to jquery-google-reviews

qualtrics-map
Google Maps integration into Qualtrics.
Stars: ✭ 17 (-48.48%)
Mutual labels:  google-maps, google-maps-api, google-places-api
Magento2 Google Address Lookup
Provides an address lookup service on a Magento 2 store powered by the Google Places API
Stars: ✭ 46 (+39.39%)
Mutual labels:  google-maps, google-maps-api
Android-Google-Places-API
An easy implementation of Google Places API in Android https://developers.google.com/places/web-service/
Stars: ✭ 53 (+60.61%)
Mutual labels:  google-maps, google-places-api
GoogleMaps-CustomInfoWindow-Button
interactive custom InfoWindow for Google Maps
Stars: ✭ 14 (-57.58%)
Mutual labels:  google-maps, google-maps-api
Wanderlust The Travellers App
👟 An android application for travellers which allows them to save their journey experiences at one place in an organizable way. For detailed description, read the README.md file. Moreover, the application's design follows the latest HCI and UI/UX design guidelines.
Stars: ✭ 23 (-30.3%)
Mutual labels:  google-maps, google-maps-api
React Native Maps Directions
Directions Component for `react-native-maps`
Stars: ✭ 846 (+2463.64%)
Mutual labels:  google-maps, google-maps-api
Load Google Maps Api
🌏 A lightweight Promise-returning helper for loading the Google Maps JavaScript API
Stars: ✭ 166 (+403.03%)
Mutual labels:  google-maps, google-maps-api
Flask Googlemaps
Easy way to add GoogleMaps to Flask applications. maintainer: @RiverFount
Stars: ✭ 550 (+1566.67%)
Mutual labels:  google-maps, google-maps-api
Googleway
R Package for accessing and plotting Google Maps
Stars: ✭ 187 (+466.67%)
Mutual labels:  google-maps, google-maps-api
Meteor Google Maps
🗺 Meteor package for the Google Maps Javascript API v3
Stars: ✭ 198 (+500%)
Mutual labels:  google-maps, google-maps-api
jquery.geocomplete
A simple plugin for Google Maps Autocomplete.
Stars: ✭ 15 (-54.55%)
Mutual labels:  jquery-plugin, google-maps
React Google Maps Api
React Google Maps API
Stars: ✭ 791 (+2296.97%)
Mutual labels:  google-maps, google-maps-api
Use Places Autocomplete
😎 📍 React hook for Google Maps Places Autocomplete.
Stars: ✭ 739 (+2139.39%)
Mutual labels:  google-maps, google-maps-api
Maplace.js
A Google Maps Javascript plugin for jQuery.
Stars: ✭ 1,021 (+2993.94%)
Mutual labels:  google-maps, google-maps-api
Snazzy Info Window
Customizable info windows using the Google Maps JavaScript API.
Stars: ✭ 560 (+1596.97%)
Mutual labels:  google-maps, google-maps-api
Bikedeboa
A (Progressive) Web App to find, map and review bike parkings in the cities of Brazil.
Stars: ✭ 54 (+63.64%)
Mutual labels:  google-maps, google-maps-api
laravel-5.3-app
🗺️ Get started with Laravel 5.3, Vue.js and Google Maps API
Stars: ✭ 28 (-15.15%)
Mutual labels:  google-maps, google-maps-api
Firebase-Realtime-Car-Moving-On-JavaScript-Google-Maps
This is the solution for moving realtime cars on Google Maps JavaScript using Google Firebase Realtime Database.
Stars: ✭ 26 (-21.21%)
Mutual labels:  google-maps, google-maps-api
react-google-static
🌍 A React wrapper for Google Static Maps API.
Stars: ✭ 37 (+12.12%)
Mutual labels:  google-maps, google-maps-api
Google Maps
Google Maps Web Services API wrapper for .NET
Stars: ✭ 171 (+418.18%)
Mutual labels:  google-maps, google-maps-api

jQuery Plugin to display Google Reviews of a Place on Google Maps

this will get the 5 reviews, google offers you.

But I need more than 5 reviews!

if you need more, let me direct you a bit: https://developers.google.com/my-business/content/review-data#list_all_reviews - but this will be a different project all by its own

I do not like jQuery!!!1eleven

The NPM Package is here - Frontend Devs will know how to webpack :) or simply extract the code and adapt it to your needs, dropping jQuery as a dependency.

Credits

Inspired by Steven Monson's magnificent article here: https://www.launch2success.com/guide/display-google-reviews-website-2017/ or check out Steven's github. Steven's code is based on peledies jquery plugin repo. So, I simply remixed their work into this repo. Thank you guys!

Dear beginners and copy-pasters

:octocat: For those of you, who are new in programming or can only copy-paste, please make sure, that jQuery, the Google Maps API and the .js-file of this plugin are successfully loaded, before you call this script in your html page.

./demo/index.html is a working demo, the comments will guide you 😉

Prerequisites

  • You must have jQuery in your project: jQuery

  • add the .js and .css of this repo to your project (see ./demo/index.html for inspiration 😉)

  • if you do not have a working Google Maps API key already: create a Google API Key: https://console.developers.google.com/apis/ make sure to set a limit to your payments

  • add the following line with your Google Maps API key with the key param:

    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=YourApiKeyHere"></script>
  • add an empty div element in your html template with an unique ID, where the reviews should show up. In this case:

    <div id="google-reviews"></div>

How to get link to “View All Google Reviews” or "Write a review"

Please see the official Documents for this topic:
https://developers.google.com/my-business/content/review-data#list_all_reviews

  • Step 1. Open a browser, but don’t use Chrome. You can use Firefox, or Edge, or even Internet Explorer but not Google Chrome because it alters the URL and your link will not work correctly.

  • Step 2. Go to Google.com and search for your company’s name.

  • Step 3. Find the card on the right and click “View All Google Reviews” or "Write a review"

  • Step 4. Copy the URL in the address bar.

  • Step 5. Now paste the URL as a link on more_reviews_button_url or write_review_button_url param.

Call the Plugin

Grab your place's ID (https://developers.google.com/places/place-id) and call it as placeId parameter, when calling the plugin.

<script>
jQuery(document).ready(function($) {
  if ($("#google-reviews").length == 0) {
    return
  }
  // Find a placeID via https://developers.google.com/places/place-id
  $("#google-reviews").googlePlaces({
    placeId: 'ChIJZa6ezJa8j4AR1p1nTSaRtuQ',
    // the following params are optional (default values)
    header: "<h3>Google Reviews</h3>", // html/text over Reviews
    footer: '', // html/text under Reviews block
    maxRows: 5, // max 5 rows of reviews to be displayed
    minRating: 4, // minimum rating of reviews to be displayed
    months: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
    textBreakLength: "90", // length before a review box is set to max width
    shortenNames: true, // example: "Max Mustermann" -> "Max M."",
    moreReviewsButtonUrl: '', // url to Google Place reviews popup
    moreReviewsButtonLabel: 'Show More Reviews',
    writeReviewButtonUrl: '', // url to Google Place write review popup
    writeReviewButtonLabel: 'Write New Review',
    showProfilePicture: true
  });
});
</script>

Are Pull Requests welcome?

Yes, of course :octocat:

You do not need to update the demo folder! I will do this, when your code was merged.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].