| | |
| | | import org.springframework.stereotype.Service;
|
| | | import org.locationtech.jts.geom.*;
|
| | | import org.locationtech.jts.operation.buffer.BufferOp;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.beans.factory.annotation.Value;
|
| | | import org.springframework.web.bind.annotation.*;
|
| | |
|
| | |
|
| | | import java.util.*;
|
| | | import java.util.HashMap;
|
| | |
| | | JSONObject jsonObject = JSON.parseObject(jsonString1);
|
| | | JSONObject dataObjject = jsonObject.getJSONObject("data");
|
| | | JSONArray dataArray = dataObjject.getJSONArray("items");
|
| | | if(dataArray.size()<=0){
|
| | | return null;
|
| | | }
|
| | | return dataArray.getJSONObject(0).toString();
|
| | |
|
| | |
|