|
@ -462,14 +462,14 @@ public class EmergencyAssistanceService extends BaseJpaService<EmergencyAssistan
|
|
|
if (StringUtils.isBlank(doctorDO.getDoctorLat()) || StringUtils.isBlank(doctorDO.getDoctorLon())) {
|
|
|
continue;
|
|
|
}
|
|
|
double distanceTmp = countDistance.getDistance(Double.parseDouble(assistanceDO.getServeLat()),Double.parseDouble(assistanceDO.getServeLon()),Double.parseDouble(doctorDO.getDoctorLat()),Double.parseDouble(doctorDO.getDoctorLon()));
|
|
|
// double distanceTmp = countDistance.getDistance(Double.parseDouble(assistanceDO.getServeLat()),Double.parseDouble(assistanceDO.getServeLon()),Double.parseDouble(doctorDO.getDoctorLat()),Double.parseDouble(doctorDO.getDoctorLon()));
|
|
|
otherDoctorDistanceObj = new JSONObject();
|
|
|
otherDoctorDistanceObj.put("doctor",doctorDO.getId());
|
|
|
otherDoctorDistanceObj.put("doctorName",doctorDO.getName());
|
|
|
otherDoctorDistanceObj.put("doctorAddress",doctorDO.getDoctorLocateAddress());
|
|
|
otherDoctorDistanceObj.put("doctorLon",doctorDO.getDoctorLon());
|
|
|
otherDoctorDistanceObj.put("doctorLat",doctorDO.getDoctorLat());
|
|
|
otherDoctorDistanceObj.put("distance",distanceTmp);//两点距离
|
|
|
otherDoctorDistanceObj.put("distance",null);//两点距离
|
|
|
otherDoctorDistance.add(otherDoctorDistanceObj);
|
|
|
origins.append(doctorDO.getDoctorLat()+","+doctorDO.getDoctorLon()+"|");
|
|
|
}
|