:doc:`IoTWireless <../../iotwireless>` / Client / get_resource_position

*********************
get_resource_position
*********************



.. py:method:: IoTWireless.Client.get_resource_position(**kwargs)

  

  Get the position information for a given wireless device or a wireless gateway resource. The position information uses the `World Geodetic System (WGS84) <https://gisgeography.com/wgs84-world-geodetic-system/>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourcePosition>`_  


  **Request Syntax**
  ::

    response = client.get_resource_position(
        ResourceIdentifier='string',
        ResourceType='WirelessDevice'|'WirelessGateway'
    )
    
  :type ResourceIdentifier: string
  :param ResourceIdentifier: **[REQUIRED]** 

    The identifier of the resource for which position information is retrieved. It can be the wireless device ID or the wireless gateway ID, depending on the resource type.

    

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

    The type of resource for which position information is retrieved, which can be a wireless device or a wireless gateway.

    

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

    
    ::

      {
          'GeoJsonPayload': StreamingBody()
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see `GeoJSON <https://geojson.org/>`__.

        
  
  **Exceptions**
  
  *   :py:class:`IoTWireless.Client.exceptions.ValidationException`

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

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

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

  
  *   :py:class:`IoTWireless.Client.exceptions.InternalServerException`

  