:doc:`LocationServiceMapsV2 <../../geo-maps>` / Client / get_tile

********
get_tile
********



.. py:method:: LocationServiceMapsV2.Client.get_tile(**kwargs)

  

  ``GetTile`` returns a tile. Map tiles are used by clients to render a map. they're addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.

   

  For more information, see `Tiles <https://docs.aws.amazon.com/location/latest/developerguide/tiles.html>`__ in the *Amazon Location Service Developer Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/geo-maps-2020-11-19/GetTile>`_  


  **Request Syntax**
  ::

    response = client.get_tile(
        AdditionalFeatures=[
            'ContourLines'|'Hillshade'|'Logistics'|'Transit',
        ],
        Tileset='string',
        Z='string',
        X='string',
        Y='string',
        Key='string'
    )
    
  :type AdditionalFeatures: list
  :param AdditionalFeatures: 

    A list of optional additional parameters such as map styles that can be requested for each result.

    

  
    - *(string) --* 

    

  :type Tileset: string
  :param Tileset: **[REQUIRED]** 

    Specifies the desired tile set.

     

    Valid Values: ``raster.satellite | vector.basemap | vector.traffic | raster.dem``

    

  
  :type Z: string
  :param Z: **[REQUIRED]** 

    The zoom value for the map tile.

    

  
  :type X: string
  :param X: **[REQUIRED]** 

    The X axis value for the map tile. Must be between 0 and 19.

    

  
  :type Y: string
  :param Y: **[REQUIRED]** 

    The Y axis value for the map tile.

    

  
  :type Key: string
  :param Key: 

    Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Blob': StreamingBody(),
          'ContentType': 'string',
          'CacheControl': 'string',
          'ETag': 'string',
          'PricingBucket': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Blob** (:class:`.StreamingBody`) -- 

        The blob represents a vector tile in ``mvt`` or a raster tile in an image format.

        
      

      - **ContentType** *(string) --* 

        Header that represents the format of the response. The response returns the following as the HTTP body.

        
      

      - **CacheControl** *(string) --* 

        Header that instructs caching configuration for the client.

        
      

      - **ETag** *(string) --* 

        The pricing bucket for which the request is charged at.

        
      

      - **PricingBucket** *(string) --* 

        The pricing bucket for which the request is charged at.

        
  
  **Exceptions**
  
  *   :py:class:`LocationServiceMapsV2.Client.exceptions.InternalServerException`

  
  *   :py:class:`LocationServiceMapsV2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`LocationServiceMapsV2.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`LocationServiceMapsV2.Client.exceptions.ValidationException`

  
  *   :py:class:`LocationServiceMapsV2.Client.exceptions.ThrottlingException`

  