Red*_*nce 6 java android retrofit2 openweathermap
在我的应用程序中,我想使用OpenWeatherMap api 来显示城市天气信息。
为此,我想将描述 语言更改为farsi。
我在OpenWeatherMap帮助下得到了这个,我在下面写了URL:
http://api.openweathermap.org/data/2.5/forecast/daily?q=tehran,ir&cnt=16&units=metric&lang=Farsi-fa&appid=1487dd8a93bfd85d278d9ayty875ghyy
Run Code Online (Sandbox Code Playgroud)
但是给我看这个信息:
{
"city": {
"id": 112931,
"name": "Tehran",
"coord": {
"lon": 51.4014,
"lat": 35.7006
},
"country": "IR",
"population": 7153309
},
"cod": "200",
"message": 1.31599,
"cnt": 16,
"list": [
{
"dt": 1522310400,
"temp": {
"day": 29.68,
"min": 9.13,
"max": 29.68,
"night": 9.13,
"eve": 19.21,
"morn": 29.68
},
"pressure": 749.02,
"humidity": 67,
"weather": [
{
"id": 801,
"main": "Clouds",
"description": "few clouds",
"icon": "02d"
}
],
"speed": 1.42,
"deg": 211,
"clouds": 20
}
}
Run Code Online (Sandbox Code Playgroud)
在OpenWeatherMap帮助中说是否将此代码添加到URL lang=Farsi-fa更改此行 "description": "few clouds" 语言。
我添加了语言代码但不更改描述语言!
我怎么能呢?请帮我
它应该只是语言代码:
lang=fa
http://api.openweathermap.org/data/2.5/forecast/daily?q=tehran,ir&cnt=16&units=metric&lang=fa&appid=1487dd8a93bfd85d278d9ayty875ghyy
"description":"???? ???? ?????"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4758 次 |
| 最近记录: |