Online Maps
v3
|
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...
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< OnlineMapsWebServiceAPI > | OnFailed |
Event that occurs when an error response is received from webservice. More... | |
Action< OnlineMapsWebServiceAPI > | OnFinish |
Event that occurs after OnComplete, when the response from webservice processed. More... | |
Action< OnlineMapsWebServiceAPI > | OnDispose |
Event that occurs when the current request instance is disposed. More... | |
Action< OnlineMapsWebServiceAPI > | OnSuccess |
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... | |
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.
|
virtual |
Destroys the current request to webservice.
Implements OnlineMapsWebServiceAPI.
|
static |
Download photo from Google Places.
key | Google Maps API Key |
photo_reference | String used to identify the photo when you perform a Photo request. |
maxWidth | Specifies 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. |
maxHeight | Specifies 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. |
Action<Texture2D> OnlineMapsGooglePlacePhoto.OnComplete |
Event that occurs when a response is received from Google API.