внутри json есть много одинаковых дат, я хочу брать только одну дату в день, например, nov-11, nov-12, nov-13, чтобы я мог получать их данные ежедневно, а не ежечасно, и анализировать их в recyclerView
@Override
public void onBindViewHolder(@NonNull WeatherViewHolder holder, int position) {
String a = forecasts.get(position).dt_txt;
String aa= a.substring(5,10);
String b= Math.round(forecasts.get(position).getMain().temp) + "°C";
holder.hourlyTxt.setText(aa);
holder.hourlyTemp.setText(b);
Picasso.get().
load(String.format("http://openweathermap.org/img/w/%s.png", forecasts.get(position).getWeatherList().get(0).icon))
.into(holder.icon);
}
это JSON https://samples.openweathermap.org/data/2.5/forecast?lat=35&lon=139&appid=b6907d289e10d714a6e88b30761fae22