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?

http://infinity-code.com/doxygen/online … Photo.html

Re: How to retrieve Google Place Photo

Hello.

Use
OnlineMapsGooglePlacesResult.Photo.Download
or
OnlineMapsGooglePlacePhoto.Download

Example:

OnlineMapsGooglePlacePhoto.Download(apiKey, photo_reference).OnComplete += delegate (Texture2D p)
{
    myPhoto = p;
};
Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: How to retrieve Google Place Photo

Alex Vertax wrote:

Hello.

Use
OnlineMapsGooglePlacesResult.Photo.Download
or
OnlineMapsGooglePlacePhoto.Download

Example:

OnlineMapsGooglePlacePhoto.Download(apiKey, photo_reference).OnComplete += delegate (Texture2D p)
{
    myPhoto = p;
};

Thanks.

How can i know when the download ended?

Re: How to retrieve Google Place Photo

When OnComplete is invoked.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.