OK found the issue but a strange one. When I get my current location, the latitude and longitude values are up to 7 decimal places. Using these vales for unknown reason does not read that tag correctly but when I hardcode the values displayed from openweathermap json file which are rounded up to 2 decimal places, then it displays “Green Wood”
You received location values that consist of 7 decimal places. Round out up to 2 characters and use it. The result coincided with when you hard code them? If not, then there is an error somewhere.
I can assume the following situation:
There are several fields in your json data with the key “name”. If you get these fields with the help of the “get” list block, then due to a list indexing error, in one case you may get index 2, and in the other 1. Accordingly, each time the data will be different. Or another option - in different cases different json is returned.
Hi and thanks for reply. It was actually an error on my part. I placed the addMarker block in wrong place hence reason why it did not work as expected. Now all OK.