opt
This commit is contained in:
@@ -120,12 +120,16 @@ public class UploadManager {
|
||||
Location location = new Location();
|
||||
location.setLat(39.968317);
|
||||
location.setLon(116.410892);
|
||||
RoadInfoRequest request = new RoadInfoRequest(location, "", list, false, false);
|
||||
RoadInfoRequest request = new RoadInfoRequest(location, "中关村", list, false, false);
|
||||
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("sn", "F803EB2046PZD00228");
|
||||
map.put("data", GsonUtil.jsonFromObject(request));
|
||||
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
// map.put("sn", MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn());
|
||||
// map.put("data", GsonUtil.jsonFromObject(roadInfoRequest));
|
||||
|
||||
apiService.queryRoadInfos(map)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
|
||||
@@ -11,8 +11,8 @@ import java.util.ArrayList;
|
||||
*/
|
||||
public class RoadInfoRequest {
|
||||
|
||||
private Location location; //没有定位信息,可传空对象。如果没有,服务端将更加文字逆序成经纬度查询
|
||||
private String inputText;
|
||||
private Location location; //没有定位信息,可传空对象。如果没有,服务端将根据文字逆序成经纬度查询
|
||||
private String inputText; //必须是有效的地理信息,否则可能会报错
|
||||
private ArrayList<String> poiTypes;
|
||||
private boolean onlyFocus;
|
||||
private boolean onlySameCity;
|
||||
@@ -33,6 +33,14 @@ public class RoadInfoRequest {
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public String getInputText() {
|
||||
return inputText;
|
||||
}
|
||||
|
||||
public void setInputText(String inputText) {
|
||||
this.inputText = inputText;
|
||||
}
|
||||
|
||||
public ArrayList<String> getPoiTypes() {
|
||||
return poiTypes;
|
||||
}
|
||||
@@ -57,13 +65,5 @@ public class RoadInfoRequest {
|
||||
this.onlySameCity = onlySameCity;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "RoadInfoRequest{" +
|
||||
"location=" + location +
|
||||
", poiTypes=" + poiTypes +
|
||||
", onlyFocus=" + onlyFocus +
|
||||
", onlySameCity=" + onlySameCity +
|
||||
'}';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user