|
@@ -38,7 +38,8 @@ public class LjghServiceImpl implements LjghService {
|
|
|
@Override
|
|
|
public JSONObject getWayResources(String origin,
|
|
|
String destination, String strategy,
|
|
|
- String waypoints, String avoidroad, boolean isShowResource) {
|
|
|
+ String waypoints, String avoidroad, boolean isShowResource
|
|
|
+ ,String resType) {
|
|
|
JSONObject jsonObject = null;
|
|
|
String url = Constants.LJGH_ADDRESS + Constants.USERKEY
|
|
|
+ "&origin=" + origin
|
|
@@ -65,7 +66,7 @@ public class LjghServiceImpl implements LjghService {
|
|
|
gpsPoints += obj.getString("polyline") + ";";
|
|
|
}
|
|
|
if(gpsPoints.length() > 0) {
|
|
|
- List<Resource> listRes = pathService.findResources2(gpsPoints, "");
|
|
|
+ List<Resource> listRes = pathService.findResources2(gpsPoints, resType);
|
|
|
jsonObject.put("resources", listRes);
|
|
|
} else {
|
|
|
jsonObject.put("resources", new ArrayList<Resource>());
|