@@ -79,7 +79,7 @@ public class EntityConvertUtils {
|
||||
double lng = 0.0;
|
||||
if ( MogoTip.getPoint() != null ) {
|
||||
lat = MogoTip.getPoint().getLat();
|
||||
lng = MogoTip.getPoint().getLng();
|
||||
lng = MogoTip.getPoint().getLon();
|
||||
}
|
||||
return new SearchPoi( MogoTip.getPoiID(),
|
||||
MogoTip.getName(),
|
||||
|
||||
@@ -509,7 +509,7 @@ public class MogoServices implements IMogoMapListener,
|
||||
*/
|
||||
private float getMapCameraFactWidth() {
|
||||
try {
|
||||
return Utils.calculateLineDistance( mCameraNorthEastPosition, new MogoLatLng( mCameraNorthEastPosition.lat, mCameraSouthWestPosition.lng ) );
|
||||
return Utils.calculateLineDistance( mCameraNorthEastPosition, new MogoLatLng( mCameraNorthEastPosition.lat, mCameraSouthWestPosition.lon ) );
|
||||
} catch ( Exception e ) {
|
||||
return ServiceConst.DEFAULT_AUTO_REFRESH_DATA_RADIUS;
|
||||
}
|
||||
@@ -520,7 +520,7 @@ public class MogoServices implements IMogoMapListener,
|
||||
*/
|
||||
private float getMapCameraFactHeight() {
|
||||
try {
|
||||
return Utils.calculateLineDistance( mCameraSouthWestPosition, new MogoLatLng( mCameraNorthEastPosition.lat, mCameraSouthWestPosition.lng ) );
|
||||
return Utils.calculateLineDistance( mCameraSouthWestPosition, new MogoLatLng( mCameraNorthEastPosition.lat, mCameraSouthWestPosition.lon ) );
|
||||
} catch ( Exception e ) {
|
||||
return ServiceConst.DEFAULT_AUTO_REFRESH_DATA_RADIUS;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ public class RefreshModel {
|
||||
final Map< String, Object > query = new ParamsProvider.Builder( mContext ).build();
|
||||
final RefreshBody refreshBody = new RefreshBody();
|
||||
refreshBody.limit = limit;
|
||||
refreshBody.location = new RefreshBody.LatLon( latLng.lat, latLng.lng );
|
||||
refreshBody.location = new RefreshBody.LatLon( latLng.lat, latLng.lon );
|
||||
refreshBody.radius = radius;
|
||||
refreshBody.viewPush = true;
|
||||
refreshBody.dataType.add( ServiceConst.CARD_TYPE_ROAD_CONDITION );
|
||||
@@ -93,7 +93,7 @@ public class RefreshModel {
|
||||
final Map< String, Object > query = new ParamsProvider.Builder( mContext ).build();
|
||||
final RefreshBody refreshBody = new RefreshBody();
|
||||
refreshBody.limit = limit;
|
||||
refreshBody.location = new RefreshBody.LatLon( latLng.lat, latLng.lng );
|
||||
refreshBody.location = new RefreshBody.LatLon( latLng.lat, latLng.lon );
|
||||
refreshBody.radius = radius;
|
||||
refreshBody.dataType.add( ServiceConst.CARD_TYPE_ROAD_CONDITION );
|
||||
refreshBody.dataType.add( ServiceConst.CARD_TYPE_USER_DATA );
|
||||
@@ -157,7 +157,7 @@ public class RefreshModel {
|
||||
refreshBody.limit = limit;
|
||||
}
|
||||
refreshBody.radius = radius;
|
||||
refreshBody.location = new RefreshBody.LatLon( latLng.lat, latLng.lng );
|
||||
refreshBody.location = new RefreshBody.LatLon( latLng.lat, latLng.lon );
|
||||
refreshBody.onlyFocus = onlyFocus;
|
||||
refreshBody.onlySameCity = onlySameCity;
|
||||
refreshBody.onlyRealUser = onlyRealUser;
|
||||
|
||||
@@ -180,7 +180,7 @@ public class TanluManager implements IMogoMarkerClickListener,
|
||||
lat = TanluServiceManager.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
} else {
|
||||
Logger.d(TAG, "其他 ---1----");
|
||||
longit = latLon.lng;
|
||||
longit = latLon.lon;
|
||||
lat = latLon.lat;
|
||||
}
|
||||
Logger.d(TAG, "geoSearch keywords =" + mKeywords + ">>longitude= " + longit + "--latitude= " + lat);
|
||||
@@ -546,7 +546,7 @@ public class TanluManager implements IMogoMarkerClickListener,
|
||||
lat = TanluServiceManager.getLocationClient().getLastKnowLocation().getLatitude();
|
||||
} else {
|
||||
Logger.d(TAG, "其他 -onPoiSearched---1----");
|
||||
longit = latLon.lng;
|
||||
longit = latLon.lon;
|
||||
lat = latLon.lat;
|
||||
}
|
||||
// getVoiceControlRoadData(mKeywords, lat, longit);
|
||||
|
||||
Reference in New Issue
Block a user