Google Maps API image - google-maps

How to get the image when searched address in google maps?
While searching addresses in google search it displays the address, rating and image in the left side. I am using the google map api in my application, it's getting only Address and rating,but not image.
Can you provide your feedback,how to get images by using google maps api.

In the Google Places API, you can use the Place Search and Place Details to get a photos of a specific place.
You can see a photo_reference here that is used to identify the photo when you perform a Photo request.
Now, you can use the Place Photo Requests to get the image of the photoreference that you get.
Here is the sample request.
https://maps.googleapis.com/maps/api/place/photo?maxwidth=400&photoreference=CnRtAAAATLZNl354RwP_9UKbQ_5Psy40texXePv4oAlgP4qNEkdIrkyse7rPXYGd9D_Uj1rVsQdWT4oRz4QrYAJNpFX7rzqqMlZw2h2E2y5IKMUZ7ouD_SlcHxYq1yL4KbKUv3qtWgTK0A6QbGh87GB3sscrHRIQiG2RrmU_jF4tENr9wGS_YxoUSSDrYjWmrNfeEHSGSc3FyhNLlBU&key=YOUR_API_KEY

Related

Auto suggestion in Google Maps is not same at web and API

I get the program with the clumsiness of data appearance on the google API,
because if we do a direct address search on maps.google.com then the suggestion data will appear more, on the contrary if using the display API suggestion less, well how to display the suggestion API can be in accordance with the results suggestion search on maps.google.com
for the demo here: http://dzkrrbb.com/demo/gojek/
120/5000
enter the place name in the address like my example "masjid al ihsan", then compare the result on maps.google.com
I think that you are using Geocoding API instead of Place Autocomplete.
If you type "masjid al ihsan" in this link, you get the same results that Google Maps.

Places Autocomplete: Must I use a Google map if I Geocode the result with Apple?

Trying to implement a search feature for USA cities in my IOS app. My goal is to use Google's Autocomplete API while legally avoiding the use of a Google map.
So, if I use Places Autocomplete API to display a list of suggested cities as the user types do I have to use a Google map if I geocode the chosen autocomplete result through apple with CLGeocoder?
Google says you must use their data in their maps. However, if I geocode through Apple to retrieve the coordinates for display on a map, the map data isn't coming from Google. Is this legal?
I know Airbnb uses Googles places api but they use Apple maps.
According to Places API Policies:
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.
So you can use Places autocomplete without a Google map, but in this case the logo is required.
https://developers.google.com/places/web-service/policies

Google Maps API for the community photos at the bottom of Google Maps Satellite view?

In the DOM they are reviewed to as runway card view.
I have an web platform idea which would be using these photos.
I think the Google Places API can help here. The content probably won't be same as the runway on google.com/map but you might be able to get some interesting photos for nearby places and build a similar experience.
Using a Nearby Search request you could find a list of places around your map, sending the center point of your map as the location or even a category if you're interesting in something specific. The place results from that call should include some photo_reference's which can be fed into a Place Photos request to get photos for each place.

Google Maps V3 Show Map on Google Maps Link

I am using a javascript Google Maps V3 to show the location of places I have on my site, I can only offer a small view on my site so anyone who wants to see the larger map on google should either click on the Google icone on the bottom left, or in some cases I saw a link/button on the map stating "click to show on Google Maps".
So my question is how to show the link/button on my map that can open the same location on google maps site.
Google map provides an option to customize the link by adding some parameters for viewing map.
You can get the list of parameters here:
http://alvarestech.com/temp/routeconverter/RouteConverter/navigation-formats/src/main/doc/googlemaps/Google_Map_Parameters.htm
You'll need to pass the parameters to the link.
Example: https://www.google.com.au/maps/preview/#,,
You can also refer this post for more details: How do I link to Google Maps with a particular longitude and latitude?

get link in google map info box

how do get different link of "send to friend", "print map", and "get direction" link in the marker info box related to that marker.
Is there any API for that to get this type links.??
Thanks in advance.
There is nothing explicit in the Google Maps API that will show the maps.google.com InfoWindow , you will have to build that functionality into your own GInfoWindow. For the functionality you describe, you could do the following:
send to friend - Some server side code to email your site URl to a user specified email address?
print map - Link to a cut down page that displays a Google Static Maps image (for the equivalent location). The various browsers will do a better, more predictable job of printing an image than they will a Google Map DIV.
get direction - You can use the GDirections object to GeoCode to addresses and display the driving directions between those two points (on the map and with instructions).