State in weather app

Can someone give me a hint as to how to get the user’s state to put along with the city in the weather app?

At first, I thought you were talking about State a la React… lol

If you are talking about the geolocation state (eg WA, FL…) then I would suggest looking at the docs for the weather API you are pinging. State may or may not be a toggleable option.

You can also play around with API calls directly by putting the string into the address bar of your browser and see what comes back. There is a chance the State info is already in the JSON response and you just need to display it in your app. TIP: if you are viewing JSON data in your browser it will be 100% easier to read if you get a plugin that can parse it and make it pretty.

Hope that helps!

thank you! I’ll try your suggestions.