Cannot read property of undefined reading lat error

I am getting error cant read property of undefined although the property is present in the jason data recieved by the api. It is happening for some data like for the latitude and longitude while the other data works perfectly what should I do?

You’re giving implicit imformation, which makes it hard for us to help. Can you try to share your code so far?