I have already put the script that TNN mapper suggests, and now the one that you suggest me too. They both make the GPS data available, but I understand that the one you send builds the object that TNN mapper expects, however I understand that the “hdpo” parameter is still missing … Check this out on the TNN mapper page:
Make sure you have a Payload decoder function enabled on the TTN Console that decodes the raw payload into a json object. The JSON object should contain the keys " latitude ", " longitude " and " altitude " and one of " hdop ", “accuracy” or “sats”. When using the Cayenne LPP data format, the GPS coordinates will be decoded into a different JSON format, but this format is also supported. Cayenne LPP does not contain a GPS accuracy, and therefore this data will be considered as inferior and will carry less weight in calculation of coverage, and will be deleted first during data cleanup.