/**
* 距离转换成经度
* @param distance
* @return
*/
private Double doLngDegress(long distance) {
double lngDegree = 2 * Math.asin(Math.sin((double)distance/12742)/Math.cos(card.getLatitude()));
// 转换弧度
lngDegree = lngDegree * (180/Math.PI);
return lngDegree;
}
/**
* 距离转换成纬度
* @param distance
* @return
*/
private Double doLatDegress(long distance) {
double latDegrees = (double)distance/6371;
// 转换弧度
latDegrees = latDegrees * (180/Math.PI);
return latDegrees;
}