Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://api.openweathermap.org/data/2.5/weather?q={city name}&appid={key}
- {"coord":{"lon":13.39,"lat":52.52},"weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations","main":{"temp":8.49,"pressure":1035,"humidity":61,"temp_min":8,"temp_max":9},"visibility":10000,"wind":{"speed":6.7,"deg":120},"clouds":{"all":0},"dt":1542369000,"sys":{"type":1,"id":4892,"message":0.0027,"country":"DE","sunrise":1542349837,"sunset":1542381079},"id":2950159,"name":"Berlin","cod":200}
- {"cod":"404","message":"city not found"}
- InputStream inputStream = new URL(urls[0]).openStream();
Add Comment
Please, Sign In to add comment