Android modification query Yahoo weather
•
Android
I'm trying to use retrofit to request the current weather from Yahoo. I have a problem trying to pass through this city. I understand that I have to use @ query
Yahoo query is a little complicated. I'm not sure how to do it. This is my code
@GET("yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20**text%3D%22brussels%2C%20be%22)%20and%20u%3D%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys")
In this complex query, I need to start from text = "Brussels", for example, text =% Paris, fr
Any help will be appreciated;
Thank you in advance,
resolvent:
@GET("yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20**text%3D%22{location}%2C%20be%22)%20and%20u%3D%27c%27&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys")
Call<response> groupList(@Path("location") String location);
If I understand your question correctly, it should work
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码