Online Maps  v3
OnlineMapsGooglePlacePhoto Class Reference

The Place Photo service, part of the Google Places API Web Service, is a read-only API that allows you to add high quality photographic content to your application.
The Place Photo service gives you access to the millions of photos stored in the Places and Google+ Local database.
When you get place information using a Place Details request, photo references will be returned for relevant photographic content.
The Nearby Search and Text Search requests also return a single photo reference per place, when relevant.
Using the Photo service you can then access the referenced photos and resize the image to the optimal size for your application. More...

Inheritance diagram for OnlineMapsGooglePlacePhoto:
OnlineMapsWebServiceAPI

Public Member Functions

override void Destroy ()
 Destroys the current request to webservice. More...
 
- Public Member Functions inherited from OnlineMapsWebServiceAPI
OnlineMapsWWW GetWWW ()
 Get request instance More...
 

Static Public Member Functions

static OnlineMapsGooglePlacePhoto Download (string key, string photo_reference, int? maxWidth=null, int? maxHeight=null)
 Download photo from Google Places. More...
 

Public Attributes

Action< Texture2D > OnComplete
 Event that occurs when a response is received from Google API. More...
 
- Public Attributes inherited from OnlineMapsWebServiceAPI
Action< OnlineMapsWebServiceAPIOnFailed
 Event that occurs when an error response is received from webservice. More...
 
Action< OnlineMapsWebServiceAPIOnFinish
 Event that occurs after OnComplete, when the response from webservice processed. More...
 
Action< OnlineMapsWebServiceAPIOnDispose
 Event that occurs when the current request instance is disposed. More...
 
Action< OnlineMapsWebServiceAPIOnSuccess
 Event that occurs when a success response is received from webservice. More...
 
object customData
 In this variable you can put any data that you need to work with requests. More...
 

Additional Inherited Members

- Properties inherited from OnlineMapsWebServiceAPI
OnlineMapsQueryStatus status [get]
 Gets the current status of the request to webservice. More...
 

Detailed Description

The Place Photo service, part of the Google Places API Web Service, is a read-only API that allows you to add high quality photographic content to your application.
The Place Photo service gives you access to the millions of photos stored in the Places and Google+ Local database.
When you get place information using a Place Details request, photo references will be returned for relevant photographic content.
The Nearby Search and Text Search requests also return a single photo reference per place, when relevant.
Using the Photo service you can then access the referenced photos and resize the image to the optimal size for your application.

Member Function Documentation

◆ Destroy()

override void OnlineMapsGooglePlacePhoto.Destroy ( )
virtual

Destroys the current request to webservice.

Implements OnlineMapsWebServiceAPI.

◆ Download()

static OnlineMapsGooglePlacePhoto OnlineMapsGooglePlacePhoto.Download ( string  key,
string  photo_reference,
int?  maxWidth = null,
int?  maxHeight = null 
)
static

Download photo from Google Places.

Parameters
keyGoogle Maps API Key
photo_referenceString used to identify the photo when you perform a Photo request.
maxWidthSpecifies the maximum desired width, in pixels, of the image returned by the Place Photos service.
If the image is smaller than the values specified, the original image will be returned.
If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio.
maxWidth accept an integer between 1 and 1600.
maxHeightSpecifies the maximum desired height, in pixels, of the image returned by the Place Photos service.
If the image is smaller than the values specified, the original image will be returned.
If the image is larger in either dimension, it will be scaled to match the smaller of the two dimensions, restricted to its original aspect ratio.
maxHeight accept an integer between 1 and 1600.
Returns

Member Data Documentation

◆ OnComplete

Action<Texture2D> OnlineMapsGooglePlacePhoto.OnComplete

Event that occurs when a response is received from Google API.