Android: get the photo from google place api photo response - google-places-api

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.

Related

Find out which album(s) a photo is in in Google Photos API

I am using the Google Photo API, https://developers.google.com/photos/library/reference/rest
I am using get successfully to get information about a media (a photo). However, I really really need to know WHICH albums the photo is in (it cam be multiple).
Is there any way to do this? Am I missing something?
You can get all albums first and then get photos through https://developers.google.com/photos/library/reference/rest/v1/mediaItems/search
by adding the parameter of albumId.

can names of objects in a picture be retrieved from a google search by image?

i was working on a project where in i take photos of a particular object and i wanted that object to be recognized.So i was thinking of using google image search so that i get the name of the object
however i noticed that image search fails to name the objects i upload on the search. only similar images are displayed
can anyone suggest other possible search engines which may help?
the main reason i am resorting to google image search is that i don't want the application to be restricted to a few hundreds of images in a database
any help will be appreciated
If you upload image to Google Image Search, it will try to guess what's portrayed there (will be a Google search link right under your image).
Here's what I've uploaded (trimmed phone camera photo).

Google similar image search API

I'm trying to find out if there is a way to do google similar image searches via an API?
I know the image search api is depreciated but is it still useable?
https://developers.google.com/image-search/
Also... It seems that you can do image searches with the custom search api but I can't seem to work out if a similar image search is possible.
http://thenextweb.com/dd/2012/02/14/googles-custom-search-api-now-supports-image-only-results/
Any leads on advice on working this our would be appreciated.
Thanks!
If you have a URL for a hosted image (using Dropbox, imgur, etc), the answer at https://stackoverflow.com/a/15134958/116891 shows you how to find similar images. Basically,
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
That is deprecated.
But I need JSON format of similar images result.
So, I try to use google cse but this is not supported searching of similar images.
It's just displayed image search results in a custom domain.
Another method that i try is URL.
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
But this is not solution what i need.
It is because able to use in the browser. I need JSON.
Conclude, I decide to use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
You can try on the top.
First, access the URL.
Second, upload your image file on the "Try API".
Third, click "JSON" tab menu on the result.
You can be seen JSON about similar images.

Google Image Search via Upload

The image search API from Google has been depreciated:
https://developers.google.com/image-search/
My question is where can we now get the same data? It says it has moved to the new Custom Search API (https://developers.google.com/custom-search/v1/overview), but I cannot find where to now submit uploaded image data for the search. Can someone please explain or link me the information for this.
Our web app needs to be able to upload the image to google and check via a API where the image has been found.
Also if Google does not allow this is there any substitutes?
Thank you in advance.
you can get search result using direct link for uploaded image.
let direct link be http://i47.tinypic.com/ekepuq.png (to stream image data for search) then Make url as
"http ://images.google.com/searchbyimage?image_url=[diretlink]"
ie " http://images.google.com/searchbyimage?image_url=http://i47.tinypic.com/ekepuq.png " and can get search result for the same image.

Post image to wall user twitter

I know that it's possible to post an image in the wall of user twitter using TweetWithMedia,
the question is : it's possible to post just an url and twitter detect that is an image? without using TweetWithMedia (TweetWithMedia upload the image, i don't want to upload the image)
thanks,
Sure, just use the normal statuses/update endpoint to upload the tweet which includes a link to the image. Then implement the new Twitter Cards feature to get them linked as images.

Resources