|
@@ -1,5 +1,7 @@
|
|
package com.steerinfo.route.vo.currentLocation;
|
|
package com.steerinfo.route.vo.currentLocation;
|
|
|
|
|
|
|
|
+import com.steerinfo.route.util.LngLonUtil;
|
|
|
|
+
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
|
public class CurrentLocation implements Serializable {
|
|
public class CurrentLocation implements Serializable {
|
|
@@ -79,6 +81,9 @@ public class CurrentLocation implements Serializable {
|
|
|
|
|
|
public void setLat(String lat) {
|
|
public void setLat(String lat) {
|
|
this.lat = lat;
|
|
this.lat = lat;
|
|
|
|
+ Double[] lngLon = LngLonUtil.gps84_To_Gcj02((Double.valueOf(this.lat) / 600000), (Double.valueOf(this.lon) / 600000));
|
|
|
|
+ this.lon=lngLon[0].toString();
|
|
|
|
+ this.lat=lngLon[1].toString();
|
|
}
|
|
}
|
|
public String getLat() {
|
|
public String getLat() {
|
|
return lat;
|
|
return lat;
|