So LRD(eg.0x88f50e9776ef46b5:0xf65caab6fccd3bdf) is a pointer to google review window. Is there a way to extract that code using Google Place API?
I've figured out a way to extract the LRD code from the google maps page of a business. See the php code below.
The place ID of a business can be easily retrieved using Google Place API.
<?
$contents = file_get_contents("https://maps.google.com/?cid=".$_POST['place_id']);
preg_match("/(0x[a-z0-9]{4,}:0x[a-z0-9]{4,})/",$contents,$matches);
echo $matches[0]; //LRD code
?>
Related
Before Google+ got shut down I was able to embed reviews from my Google+ business page directly into my website by using the following code:
<div class="g-post" data-href="https://plus.google.com/+myCompanyName/posts/C5mXxBfvuyQ"></div>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
The link in the data-href attribute was obtained directly from the Google+ my business page.
Now that Google+ is no longer, the Google my business page provides a differently formatted link for reviews such as:
https://business.google.com/reviews/l/13034364536743825118/r/AIe9_BFhqAtkXvUqdYNeMuBBGjaAo-4Nzsp8GqZodh3JinpksaIs5fbp68A98KcYqF2nBVn5d98tYmQEc0S_NHIm8awwzKlOh216MBgrXUXucioaxZb60DA
When I place the new link into my old code it does not work and I receive the following error in the console:
Failed to load resource: the server responded with a status of 404 ()
Does anyone know the way to embed My Business reviews now?
If anyone finds this the best answer I could find was located here:
Link How To Show Google Reviews On Website
It's much more technical than it used to be, but I suppose that's expected...lol
There is a widget for WordPress I recently reviewed that does display your Google My Business reviews realy nicely and enables you to use your own css styles
Its called "Google Reviews Widget"
https://richplugins.com/documentation
I've been digging all around the web and can't figure out how to generate a LRD and ludocid. I'm trying to create a simple review link generator but can't seem to get anything of it. I know the procedure of viewing page source etc but I'm trying to make it so it automatically gets it from the input..
This blog post explains both: https://www.theedesign.com/blog/2016/how-to-create-a-google-review-url-with-the-new-g-layout
I'm currently building an app that requires the photo of the selected place using google places api. I requested the photo using
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=MY_PHOTO_REF&key=API_KEY
My problem is how can i contain the response and display it in an ImageView.
Thanks in Advance
Well looks like I got it.
https://maps.googleapis.com/maps/api/place/photo?maxwidth=[IMAGESIZE]&photoreference=[REFERENCEKEY]&sensor=false&key=[YOURKEYHERE]
This will return a single image based from the photo_reference key.
I have created a view that displays a sitemap with codeigniter when you access into www.domain.com/sitemap.xml, but there is any real sitemap.xml file.
My question is if google will read this or if i need to create a real sitemap.xml file on my site.
Thank you very much.
You can try to use Google webmaster tools
https://support.google.com/webmasters/answer/158587?hl=en
Here you find a function (fetch as google) where you can see your page in the way google see it.
First time posting here and newbie at Google apps. I am putting together a url in a spreadsheet for a linkedin company. example: http://www.linkedin.com/company/National-Renewable-Energy-Laboratory
Can I use =importXML from a google spreadsheet plus Xpath to get the website url that is listed on each company page.
I have gotten to a point where I can extract all the href's from the page and the link that I need is in that, but I just want the website url.
Here is what I am using so far:
=importXML(R2, "//*[#href]")
Here is a link to my spreadsheet: https://docs.google.com/spreadsheet/ccc?key=0AheVK6uxf6AvdHhILTFrR1k4Wl9tWW5OVWpRRUJKMlE
The code is in S2
Appreciate your response.
//*[#href] matches elements that have href, not the href attributes themselves. Try //#href instead.
It's more complicated, but a good solution would be to use the LinkedIn API, which you can access using UrlFetchApp.