|
@@ -942,7 +942,7 @@ public class RouteServiceImpl implements RouteService {
|
|
|
@Override
|
|
|
public CurrentLocationResult getCurrentLocation(String capcityNumber) throws Exception {
|
|
|
String json = zhongJiaoXingLu.vLastLocationV3(capcityNumber);
|
|
|
- CurrentLocationResult currentLocationResult = (CurrentLocationResult) DataConversionTool.jsonToBean(json, CurrentLocationResult.class);
|
|
|
+ CurrentLocationResult currentLocationResult = JSONObject.parseObject(json,CurrentLocationResult.class);
|
|
|
try{
|
|
|
if(currentLocationResult.getResult().getLat()!=null&¤tLocationResult.getResult().getLon()!=null){
|
|
|
Double[] lngLon = LngLonUtil.gps84_To_Gcj02((Double.valueOf(currentLocationResult.getResult().getLat()) / 600000), (Double.valueOf(currentLocationResult.getResult().getLon()) / 600000));
|