Get Google Page main photo? - google-places-api

I am using Google Places to render some hotels from a specific area in a website. I was able to get the details like:
https://maps.googleapis.com/maps/api/place/details/json?reference=CoQBfAAAAGnd67oCT886cIfOC8m57hGAHyf9saAs8hueRcbguA22mPcazjkk23BWMUOgvrigofuwM1HfRGpLcFtF1WXxv3_n8gb6WgXfaqQFbA0U4_ytSyLyksipx2tjwWU-3EW39ePYtpYhiCwRq9xlNI72Ah4Wv0WytqiJOTF49iTBwCD9EhD1ez5NJDr-pZMI9WagObi3GhQmn9Dum95KN61ZKamJ27wUoJxjvQ&sensor=true&key=[google_key]
If you see the result, it also has a url to official google page.
Is there any way to get the photo of this place from there?
Because the icon parameter does not have the image from here but a specific google image which is the same for all lodging types places.

The Google Places API does not currently support this feature. If you believe this would be a useful feature you can submit a `Places API - Feature Request' here:
http://code.google.com/p/gmaps-api-issues/issues/entry?template=Places%20API%20-%20Feature%20Request

Google Places API Photos like Google Maps Photo. It is not Business Photo.

Related

Google Places Photos & copyrights

I created a coordinates website that shows different information about a location. I pull this information from API's.
One of the things I show on the website are location photos that I pull from Google Places API.
Now I've received an e-mail from a professional photographer who says I'm infringing on his copyrights by showing the photo on my page. I've told him I pull the photo from Google Places and that he should contact Google if he doesn't want his photo on sites.
His reply is that I as website owner are responsible for the content and that Google has nothing to do with it. I find this very hard to believe...
What do you guys think? Any advice? Can ask Google for help?
The Google Places API has this to say about attribution:
Photos returned by the Photo service are sourced from a variety of locations, including business owners and Google+ users contributed photos. In most cases, these photos can be used without attribution, or will have the required attribution included as a part of the image. However, if the returned photo element includes a value in the html_attributions field, you will have to include the additional attribution in your application wherever you display the image.
Did the photo in question have anything in the html_attributions field? If not, then you're correct that the owner needs to talk to Google. If it does and you didn't display it, then you are in breach of copyright.

Generate Google Photo link from Google Picasa Web API data call

I am currently trying to generate a url to link to a public Google Photos gallery. I am aware from some research that all calls regarding Google Photos go through the Picasa API. So, by running file_get_contents on the following URL, I have retrieved a full listing of all public albums on my user account
http://picasaweb.google.com/data/feed/api/user/<USERNAME>?alt=json&kind=album&hl=en_US
This works perfectly and includes links to the gallery in Picasa. However, I would much prefer to be able to generate a link to the corresponding Google Photos gallery. On sharing Google photos, a shortened url is generated, like
https://goo.gl/photos/code
I was wondering if there was any possible way, given the album ID from the API call that such a link could be generated
Previous questions on this subject haven't generated much response unfortunately - is anyone aware of any such Google link generation capability?

show google places api reviews on my site

I have a review site where user can search using google places api autocomplete textbox to find a specific business and write reviews for it on my site.
The google api returns back bunch of stuff along with 5 reviews for the place searched.
is it ok for me to show the reviews the api returns on my site?
Edit:
If yes,
do i need to put a disclamer or give credit to google for the
reviews shown?
google place api also returns the review's author name, can i to
show it? do i need any permission?
is it ok for me to copy the google api reviews to my site?
If you are showing a Map, along with that data, the Map must be a Google Map(i.e. that data cannot be accompanied with openstreetmap etc.)
If you are only displaying the reviews, you must show "Powered by Google" with them.
If your application displays Google Places API Web Service data on a map, that map must be provided by Google.
If your application displays Google Places API Web Service data on a page or view that does not also display a Google Map, you must show a "Powered by Google" logo with that data. For example, if your application displays a list of places on one tab, and a Google Map with those places on another tab, the first tab must show the "Powered by Google" logo.
More details here: https://developers.google.com/places/webservice/policies

twitter card image from external website

I have a twitter share button on a webpage. I have submitted my website for twitter cards, and it is approved. I am using the twitter card tags correctly, but I have troubles to get the images appear on the time-line. On the twitter timeline I only see text and the URL. Only when clicking on the tweet, an image appears below (the tweet expands).
I would like to have this image appear on the timeline, without needing to expand the tweet. Is this possible, or am is it necessary to use a service like twitpic or flickr to make this happen?
My first thought is that this is not possible because twitter only accepts certain image websites to publish their images on the twitter timeline, but I cannot find a twitter dev source that confirms this.
This is the normal behaviour for the twitter card.
Please read https://dev.twitter.com/cards/troubleshooting#timeline
The second point of the troubleshooting might be the solution you're looking for: "For photos and animated GIFs, upload the media directly with the Tweet or consider using the Twitter API to upload media." You can also explore the other solutions offered.
UPDATE: It looks like the solution I was proposing refers to sharing content directly from twitter, so it's not an option. See this twitter community thread

Google Plus API & photos?

As I understand, there's no official G+ API for getting photos from albums.
But I've figured out from here that Google Plus uses Picasa internally.
My questions are:
Is it possible to figure out only via G+ API Picasa userId?
If yes, how can I do it with G+ API if I only have the Google Plus page URL(something like this: https://plus.google.com/104560124403688998123 - or - https://plus.google.com/115999964287637644901) ?
Thanks in advance.
The link you "figured it out from" tells what you need to know. That first big number in the page URL is the UserID. From there you can call something like:
https://picasaweb.google.com/data/feed/api/user/115999964287637644901
and it will give you a list of the albums available. Drill down from there.
Downside? Sometime soon Google is no doubt going to change all this by implementing a real G+ API for photos.

Resources