How to integrate reviews on the website using google maps api?

Hello experts and satochi. Not quite catch up (even after reading the manuals on api) how to integrate reviews on your website. At the moment I was able to set a marker at the address of the company, and now I would like to pull reviews from google maps and understand that was a more accurate result you need not only the latitude and longitude to specify but also company name. How to implement it? Maybe someone has a working version?

PS I Found an example where if you specify manually the latitude and longitude are displayed reviews. Tested..working. But I have such companies 100ни thousand and not absolutely I understood as to do so there were substituted the data from the geocoding.

Now I'm using the geocoding put labels on the map.
My script:
<div id="map" style="width: 100%; height: 500px; position:center; border: solid 1px #f2a938"></div>
 <script type="text/javascript">
 var map;
 var geo;
 function init() {
 geo = new google.maps.Geocoder();
 var opt = {
zoom:15
}
 map = new google.maps.Map(document.getElementById('map'), opt);
 var address = "<?php echo $content['company']['domicilios']['calle'];?>,+<?php echo $content['company']['domicilios']['numero'];?>+<?php echo $content['company']['domicilios']['localidad'];?>+<?php echo $content['company']['domicilios']['provincia'];?>+<?php echo $content['company']['domicilios']['codigo_postal'].", Argentina";?>"
//console.log(address)
 geo.geocode({'address' : address}, function (results,status) {
 if (status == google.maps.GeocoderStatus.OK){
map.setCenter(results[0].geometry.location);
 var marker = new google.maps.Marker({
map:map,
position:results[0].geometry.location
});
}

});

}


</script>


 <script src="https://maps.googleapis.com/maps/api/js?key=XXX"></script>
March 23rd 20 at 19:14
0 answer

Find more questions by tags Google Maps