Location library - separating cloud and GNSS requests.

Hello,

I’m wondering if there is a way to separate CELL and Wi-Fi location data from GNSS location data in the Location library. Currently, we use nRF Cloud for location services, which works well. However, we believe using our own cloud as a proxy to nRF Cloud might improve both message transmission times and battery consumption.

Here’s our proposed approach:

  1. The device collects cell tower and Wi-Fi data and sends it to our cloud.
  2. Our cloud forwards this data to nRF Cloud and receives the location in response.
  3. The location remains on our server, so there’s no need to send it back to the device.

The issue we have is that we don’t want to forward AGPS data. Is it possible to forward only CELL and Wi-Fi data and let the device request AGPS directly from nRF Cloud?


Parents Reply Children
  •  

    Thank you for your response—I wasn’t aware of the Location History API.

    I have a question regarding C2C. Is it possible to separate the CELL and Wi-Fi data so they go through the proxy, while allowing the GNSS portion to use a direct request?

    I’m wondering if we can configure the library to collect only Wi-Fi and CELL data, and then, for example, respond to the library with:

    location_cloud_location_ext_result_set(LOCATION_EVT_RESULT_UNKNOWN)

    once the collection is done. However, doing this seems to require enabling CONFIG_LOCATION_SERVICE_EXTERNAL, which would then force all A-GPS requests through the proxy as well. Is that correct?

Related