I found some talk of this in other posts, but nothing that answers my question, but apologies if I missed the answer or if this is considered duplication.
I have a product fleet that I am hoping to use the google maps geolocation integration with. The ideal scenario, is that periodically the particle calls the geolocate integration, and then the location data from the response is then passed a google pub/sub integration along with the devices id. I will then take the data from there and get it into Firestore. The particle does not need to listen to the response from the geolocate hook.
My question is, short of receiving the data from the response directly on our device and republishing from the device as a fresh event, is there anyway to catch the Google API response, add in the device id and hand over the the gcloud integration?
As is always the case, as soon as I post I find something relevant. Google Maps Device Locator does not provide a callback
So I suppose it is best to receive the response on the particle and then republish this in a fresh event?