Disable indoor view of buildings in Google Street View Image API - google-api

I'm using Google Street View Image API (not the Javascript API) to construct a URL which returns a street view image. The problem is, that sometimes it returns an image of the inside of the building, rather than the image of the building at the provided address. I know this can be disabled using the Javascript API, but can it be disabled via a URL parameter in the Image API?

You should add &source=outdoor as an url parameter

You can make a call to the Geocoding API in order to get the lat/lang coordinates to an address.
https://maps.googleapis.com/maps/api/streetview?size=400x400&address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&fov=90&heading=235&pitch=10&key=YOUR_API_KEY
Then the you use the results.geometry.location from the response to get the coordinates you need to create the Street View Image URL
The Geocoder will always give you a location outside at the entrance, other APIs like Directions API may give you the same indoor problem.

You can call the Google Street View Image Metadata API to get the copyright info of the image. If this is not equal to "© Google, Inc.", it's a real streetview image.
I know that it's not the best solution, but it works.

Related

Google's Place Details, Place Photos API: How do I request only photos that the owner has uploaded?

In the Google Maps Web UI, for any given place, I have filtering options for displaying subsets of images: "By owner" or "Vibe", and so on. See the example image below.
How do I, programmatically, achieve the same using Google's Place Details and/or Place Photos APIs? E.g. how do I fetch only "By owner" images from a given place?
It's not possible using the current version of Google's Places API (Sept 1, 2021).
Many thanks to jpoehnelt for commenting and answering.

Unknown UTM campaign name using facebook pixel

I'm running ads on Facebook with additional URL parameters:
source={{site_source_name}}&placement={{placement}}&ad_id={{ad.id}}&adset_id={{adset.id}}&campaign_id={{campaign.id}}&ad_name={{ad.name}}&adset_name={{adset.name}}&campaign_name={{campaign.name}}
I've checked the preview Url and it seems that the values are filled properly.
However, I don't see any data about the ads source/campaign/ad on my pixel analytics page, everything is classified as unknown.
what am I missing?
Maybe the parameters of Facebook analytics are different from the above?
I believe the URL params are named differently, i.e. utm_source=X&utm_medium=Y&utm_campaign=Z&utm_content=W

Android: get the photo from google place api photo response

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.

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.

Resources