Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getLocation #54

Closed
MCP-KC opened this issue Apr 8, 2024 · 1 comment
Closed

getLocation #54

MCP-KC opened this issue Apr 8, 2024 · 1 comment

Comments

@MCP-KC
Copy link

MCP-KC commented Apr 8, 2024

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!

@fungus75
Copy link
Owner

fungus75 commented Apr 8, 2024

please update to newest version. Hope it works for you also.

@fungus75 fungus75 closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants