Hi
I am trying to display my location on an IoT Cloud Map Widget and have searched the web but it seems that the map widget, the CloudLocation variable type and the Location() functions are not well documented. I need to know exactly how to use these for my project.
Note: I already know my longitude and latitude and I am getting them using OpenWeatherMap API. This is not related to my question but I wanted to say that I have not had any trouble getting the coordinates but displaying them.
Ok, if someone is looking how to use the Map Widget, after Arduino IoT Cloud create the CloudLocation variable in the thingProperties.h tab, as for example (I named the variable "coordinates"):
CloudLocation coordinates;
You need to chage the latitude and longitude values in the next form (inside your loop() code or whatever):