Closed MCP-KC closed 7 months ago
The getLocation function gets back the following JSON structure:
{"data":{"id":"VF1AG0003657xxxxx","attributes":{"lastUpdateTime":"2024-04-06T18:44:27Z","gpsLatitude":49.3456138888889,"gpsLongitude":17.254573333333334}}}
(remark: car-ID, gps coordinates altered in this text)
Therefore, I think that var gpsLatitude=data.gpsLatitude; (leading to gpsLatitude:undefined) in main.js does not catch the data element.
I have tested var gpsLatitude=data.data.attributes.gpsLatitude; and it works.
The same holds true for gpsLongitude.
Obviously, Renault has changed the data structure on March 5th 2024.
Thanks!
please update to newest version. Hope it works for you also.
The getLocation function gets back the following JSON structure:
{"data":{"id":"VF1AG0003657xxxxx","attributes":{"lastUpdateTime":"2024-04-06T18:44:27Z","gpsLatitude":49.3456138888889,"gpsLongitude":17.254573333333334}}}
(remark: car-ID, gps coordinates altered in this text)
Therefore, I think that var gpsLatitude=data.gpsLatitude; (leading to gpsLatitude:undefined) in main.js does not catch the data element.
I have tested var gpsLatitude=data.data.attributes.gpsLatitude; and it works.
The same holds true for gpsLongitude.
Obviously, Renault has changed the data structure on March 5th 2024.
Thanks!