【发布时间】:2015-11-19 22:54:12
【问题描述】:
我正在尝试使用 URL 中的多个变量发送请求,如下代码所示
@GET("rides/getride/{user}/{lat_orig}%2C{lon_orig}/{lat_dest}%2C{lon_dest}/")
Call<User> getride(@Path("user") String user,@Path("lat_orig") double lat_orig,@Path("long_orig") double lon_orig,
@Path("lat_dest") double lat_dest,@Path("lon_dest") double lon_dest);
但它给我一个错误。还有另一种方法吗? 我要一个一个输入然后一起发送吗?
【问题讨论】:
-
你遇到了什么错误?