【发布时间】:2018-12-27 21:51:28
【问题描述】:
我正在使用谷歌自动完成网络服务。我想打电话给
但 strictbounds 参数没有参数名称。我已创建改造请求,但无法添加 strictbounds 参数
@GET("maps/api/place/autocomplete/json")
Call<PlaceSearchResult> searchPlaceByName(@Query("input") String input, @Query("location") String location
, @Query("radius") String radius, @Query("key") String key);
如何在没有key的情况下添加参数?
【问题讨论】:
-
你必须在地图中传递这个查询
-
您忘记在改造请求中输入查询
-
我也尝试使用地图,但在地图中,我输入的密钥来自 url。 strictbounds 没有任何键
-
你试过这种方式吗@GET("maps/api/place/autocomplete/json?strictbounds")