Maps SDK for Web
tt.services.poiPhotos
Points of Interest (POI) Photos service provides photos of the POI. Use this service to generate the URL to retrieve the image.
This service has specific terms and conditions of usage. For more information about this service please refer to the POI Photos API documentation.
Constructor
tt.services.poiPhotos([options])
Parameters
Name | Description |
---|---|
options
Object default:None |
Options to be passed to the call. |
options.height
Number default:None |
The maximum height of the image. The maximum height of the image, which will be returned by the service. If only height is provided, the image will be scaled according to that dimension. If none of dimensions is provided, the service will return the original size image. If width is also provided, service will fit, center and crop the image to fill both desired dimensions. If height provided is bigger than the original image's height, the service will return the image with original height. |
options.id
Number default:None |
Photo id which is previously retrieved from the POI Details service. |
options.key
String default:None |
A valid API Key for the requested service. Key is required to make use of the given service. It can be issued in the Developer Portal. |
options.width
Number default:None |
The maximum width of the image. The maximum width of the image, which will be returned by the service. If only width is provided, the image will be scaled according to that dimension. If none of dimensions is provided, the service will return the original size image. If height is also provided, service will fit, center and crop the image to fill both desired dimensions. If width provided is bigger than the original image's width, the service will return the image with original width. |