How to get names of contacts in Google Photos images - google-contacts-api

If a user logs into my app with Google Photos and I get a specific photo from their account, is it possible to get the names of the contacts in that photo? When using Google Photos in general, there is a feature to see who is in my photos, so is it possible to do this programmatically?

Related

How to get Google reviews for a business without specific address and placeId?

Right now, we have a flow, where we import Google reviews on sign up and then update them daily. We get the user's company name and location address:
$requestUri = 'https://maps.googleapis.com/maps/api/place/autocomplete/json?key={key}&input=A+Closer+Look+Residential+Inspections%2C+LLC%2C+9230+Fowler+Ln%2C+Lanham%2C+MD+20706%2C+United+States';
From autocomplete we can get placeId and search for reviews by placeId:
$requestUri = 'https://maps.googleapis.com/maps/api/place/details/json?key={key}&place_id=ChIJmyUG8bfBt4kRqqn8jPZYhDo';
And this worked fine.
Issue
We have a new user which dont have location address, so we can't get placeId. The user has reviews on Google if to search for them in the search bar.
Company name is: "Westside Home Inspections Inc.". Google Map shows that they works in whole LA (not address, but area). Then i tried to get a placeId here: https://developers.google.com/maps/documentation/places/web-service/place-id . But with no luck.
Question:
Is this possible to get Google reviews only by company name?
If company has no address, then it's SAB (service area business).
And looks like Google Places API excluded support for SABs from their Places Api:
The Places API team has reviewed this feature request and decided against including Service Area Businesses results in API responses. Places API mission is to enable developers to help users find relevant places to visit. Since Service Area Businesses are not places users can visit, and therefore do not belong in the Places API.
More details here: https://issuetracker.google.com/issues/35828187#comment20
And if to get reviews we need to use placeId, then its not possible to get reviews.
Answer: No, its not possible to get Google reviews for SAB, because Google removed support of SAB in Google Places Api.
PS: I think, it's possible that we can get reviews for SAB in the "Google Business Profile", but this is not our case and is a different story.
Thanks to #MrUpsidown for helpful link in comments.

Where is contact tag data saved in Google Drive/photo?

I'd like to make an app that allows my organization to add custom tags on top of what's provided in Google Drive/Google Photos. Google photos creates custom albums for each of your contacts, and when you take a new picture, it automatically tags contacts in photos. Where is that data stored? Looking at the Google Drive Rest API for Files (https://developers.google.com/drive/v2/reference/files?hl=en), it doesn't appear to be anywhere. What I'd ultimately like to do is filter the photos in my Google Drive account by contact. Is that possible? Thanks!
Google photos are stored in the drive containers but the photos data is still stored in the old Picasa infrastructure. you can try with the Picasa api

How to query photos/files by album using Drive REST API V3

Is it possible to query Drive files from the photos space using the REST API by album. I don't see my album names in any of the listed fields when I query the files, so I'm not sure what to filter q on.
I'm currently querying with the rest API like:
https://www.googleapis.com/drive/v3/files?spaces=photos&fields=files
This returns a list of fields. None of which contain any names of my albums (some are in Google Photos albums, some not). If any did I would just add &q=[field=value] to the query string. So I'm not sure if this is possible and I'm not finding any information on how to go about it at all.
If it is possible, how?
In https://photos.google.com/settings enable "Google Drive Show Google Drive photos & videos in your Photos library"
In your files.list, you need a spaces=photos

Google Contacts API V3, how to search

There are various examples provided in this link https://developers.google.com/admin-sdk/directory/v1/guides/search-users by Google. However, I can't seem to find what I am looking for. I want to pull all contacts that include phone numbers or city only. The search query doesn't seem to support something like addressStreet:isExists. Any inputs?
EDIT
When I view Contacts in my GMail, only those I created manually (have phone and address) are displayed. The ones automatically created by GMail (whenever an email is exchanged with someone GMail apparently creates a contact). When I pull contacts via Google Contacts API v3, I get thousands entries back, most of those are those automatically created ones.

Google Maps application, use Data API or my own data store

I wish to develop a site mashing up user generated geodata content with geodatacontent from Google search (Locations of niche businesses entered and recommend/commented by the users as well as the search result though Google Maps for the same businesses, presented on a map. Users can grade/comment on the Google Search result as well, I store the comments and grades etc.)
Any tips as to whether try to use the Data API or just keep all the data in my own datastore?