nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ location_cloud_location_ext_result_set()

void location_cloud_location_ext_result_set ( enum location_ext_result  result,
struct location_data location 
)

#include <include/modem/location.h>

Pass cloud location result to the library.

If the Location library is not receiving cloud location directly from the services, it triggers the LOCATION_EVT_CLOUD_LOCATION_EXT_REQUEST event, that indicates the LTE neighbor cell and/or Wi-Fi access point information is ready to be sent to cloud services for location resolution. Then, the application responds with the result.

In addition to 'success' and 'error' results, the application can indicate that the result is 'unknown' with LOCATION_EXT_RESULT_UNKNOWN. This is useful when the application wants the Location library to proceed irrespective of the outcome. The Location library will try to perform a fallback to the next method, if available, just like in a failure case. If there are no more methods, LOCATION_EVT_RESULT_UNKNOWN event will be sent to the application.

Parameters
[in]resultResult of the external cloud location request.
[in]locationCloud location data. Will be used only if result is LOCATION_EXT_RESULT_SUCCESS.