How to query photos/files by album using Drive REST API V3 - google-drive-api

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

Related

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

Can users rate a restaurant by using google places API?

I am able to get restaurants list, timings, rating and displaying them in my Android application by using Google places API. This is API
https://maps.googleapis.com/maps/api/place/search/json?location=13.0104611,80.2086226&
radius=10000&types=cafe|restaurant&hasNextPage=true&nextPage()=true&sensor=false&key=MY_API_KEY
As per my client requirement, Users should be able to give rating to a specific restaurant from my application, this restaurant got from above Googel API.
Kindly tell me whether possible or not giving rating to a restaurant from above API . Thanks in advance.
According to the documentation, using the Google Places API Web Service, the following place requests are available:
Place Searches return a list of places based on a user's location or search string.
Place Details requests return more detailed information about a specific Place, including user reviews.
Place Add allow you to supplement the data in Google's Places database with data from your application.
Place Photos gives you access to the millions of Place related photos stored in Google's Place database.
Place Autocomplete can be used to automatically fill in the name and/or address of a place as you type.
Query Autocomplete can be used to provide a query prediction service for text-based geographic searches, by returning suggested queries as you type.
The only request that allows to put data is Place Add, but according to the documentation it adds a place that is available immediately in Nearby Searches initiated by your application and also enters a moderation queue to be considered for Google Maps.
So the answer is that for the time being it's not possible to add reviews to Places using the Google Places API Web Service.

google drive api partial search results

I am using Google Drive API from Google App engine for java. I am searching the google docs with search string
Files.List request = service.files().list().setQ("title contains 'Donation'");
It returns only 2 files with title DonationThankYouLetterData and How to Create Awareness on Blood Donation
I failed to understand why it is not returning other files with title like
DonationThankYou_Anil Kumar _02-Aug-2013
Donation
All files are created by me so owner is same.
It could be a number of reasons...
Is there a nextPage link that you should be following. Drive doesn't guarantee to return all hits in a single response
Do you have the correct scope to access the file. Eg. if the first two files were created by your app, and the third was created in Drive, and your app only has drive.file scope.
To investigate further, you should ...
Go to https://developers.google.com/drive/v2/reference/files/get and retrieve the item for each file. Compare them to see if there is any obvious difference
Run the list without the query to confirm that all three files are indeed being returned
Also look at this answer Drive API files.list query with 'not' parameter returns empty pages which seems to suggest that "contains" is broken, but that doesn't seem to match your symptoms, based on the file names you used in your question.

Can a Google Map be populated with data contained in a WordPress Category Archive?

Is it possible to insert a Google Map into a WordPress category archive that would read all of the data in the places on a category page and create markers for them?
I have a directory site where each place on my site has been geocoded. Places are individual posts. They are organized into categories by city. The output of the each category page is a list of all the places for that city.
My URLs look like this:
example.com (Homeapge)
example.com/city (City Archive Page - shows a list of all places in my db for that city)
example.com/city/famous-restaurant (Place Detail Page - shows all data about a specific place in my db)
I want to create a map once that I can put on top of example.com/city and it would show markers for each listing I have in my db for a specific city. I don't want to have to create individual maps for each city.
I found this tutorial but it would require an XML dump of my db on the fly.
Are there better ways to accomplish this?
Yes. You'd use a combination of the Google Maps API and get_posts()
https://developers.google.com/maps/documentation/javascript/overlays#Markers
and
http://codex.wordpress.org/Template_Tags/get_posts
Though, the posts will have to have the latitude and longitude stored with them. Otherwise, you'll probably need to use another part of the google maps API to look the places up...

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?