Topic: How to retrieve Google Place Photo
Hi
I sucessfully get a photo reference for the place_id that i want.
But now i don't know how to get the photo and apply a texture2D
Could someone help with the use o this?
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → How to retrieve Google Place Photo
Hi
I sucessfully get a photo reference for the place_id that i want.
But now i don't know how to get the photo and apply a texture2D
Could someone help with the use o this?
Hello.
Use
OnlineMapsGooglePlacesResult.Photo.Download
or
OnlineMapsGooglePlacePhoto.Download
Example:
OnlineMapsGooglePlacePhoto.Download(apiKey, photo_reference).OnComplete += delegate (Texture2D p)
{
myPhoto = p;
};
Hello.
Use
OnlineMapsGooglePlacesResult.Photo.Download
or
OnlineMapsGooglePlacePhoto.DownloadExample:
OnlineMapsGooglePlacePhoto.Download(apiKey, photo_reference).OnComplete += delegate (Texture2D p) { myPhoto = p; };
Thanks.
How can i know when the download ended?
When OnComplete is invoked.
Infinity Code Forum → Online Maps Help → How to retrieve Google Place Photo
Powered by PunBB, supported by Informer Technologies, Inc.