下沉经纬度公用信息实体

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-09-17 17:40:45 +08:00
parent b8b5cf29a7
commit 4556727d23
185 changed files with 241 additions and 270 deletions

View File

@@ -1,96 +0,0 @@
package com.mogo.map;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Objects;
/**
* @author congtaowang
* @since 2019-12-18
* <p>
* 经纬度
*/
public class MogoLatLng implements Parcelable {
public final double lat;
@Deprecated
public final double lng;
public final double lon;
public MogoLatLng( double lat, double lon ) {
this.lat = lat;
this.lng = lon;
this.lon = lon;
}
public double getLat() {
return lat;
}
/**
* Deprecated, use {@link #getLon()} instead.
*
* @return
*/
@Deprecated
public double getLng() {
return lng;
}
public double getLon() {
return lon;
}
@Override
public boolean equals( Object o ) {
if ( this == o ) return true;
if ( o == null || getClass() != o.getClass() ) return false;
MogoLatLng latLng = ( MogoLatLng ) o;
return Double.compare( latLng.lat, lat ) == 0 &&
Double.compare( latLng.lon, lon ) == 0;
}
@Override
public int hashCode() {
return Objects.hash( lat, lng, lon );
}
@Override
public String toString() {
return "MogoLatLng{" +
"lat=" + lat +
", lon=" + lon +
'}';
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel( Parcel dest, int flags ) {
dest.writeDouble( this.lat );
dest.writeDouble( this.lng );
dest.writeDouble( this.lon );
}
protected MogoLatLng( Parcel in ) {
this.lat = in.readDouble();
this.lng = in.readDouble();
this.lon = in.readDouble();
}
public static final Creator< MogoLatLng > CREATOR = new Creator< MogoLatLng >() {
@Override
public MogoLatLng createFromParcel( Parcel source ) {
return new MogoLatLng( source );
}
@Override
public MogoLatLng[] newArray( int size ) {
return new MogoLatLng[size];
}
};
}

View File

@@ -2,7 +2,7 @@ package com.mogo.map.listener;
import android.view.MotionEvent;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.model.MogoPoi;
import com.mogo.map.uicontroller.EnumMapUI;
import com.mogo.map.uicontroller.VisualAngleMode;

View File

@@ -1,9 +1,8 @@
package com.mogo.map.listener;
import android.util.Log;
import android.view.MotionEvent;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.model.MogoPoi;
import com.mogo.map.uicontroller.EnumMapUI;
import com.mogo.map.uicontroller.VisualAngleMode;

View File

@@ -1,6 +1,5 @@
package com.mogo.map.marker;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.view.View;
@@ -8,7 +7,7 @@ import android.view.animation.Interpolator;
import androidx.annotation.RawRes;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.marker.anim.OnMarkerAnimationListener;
import java.util.ArrayList;

View File

@@ -2,7 +2,7 @@ package com.mogo.map.marker;
import android.content.Context;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.ArrayList;
import java.util.List;

View File

@@ -6,7 +6,7 @@ import android.view.View;
import androidx.annotation.RawRes;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.location.MogoLocation;
import java.util.ArrayList;

View File

@@ -3,7 +3,7 @@ package com.mogo.map.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -1,6 +1,7 @@
package com.mogo.map.navi;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,8 +3,7 @@ package com.mogo.map.navi;
import android.graphics.Rect;
import android.location.Location;
import com.mogo.map.MogoLatLng;
import com.mogo.map.location.MogoLocation;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;

View File

@@ -1,7 +1,7 @@
package com.mogo.map.navi;
import android.text.TextUtils;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;
/**

View File

@@ -3,7 +3,7 @@ package com.mogo.map.navi;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.ArrayList;
import java.util.List;

View File

@@ -3,7 +3,7 @@ package com.mogo.map.overlay;
import androidx.annotation.ColorInt;
import com.mogo.map.IDestroyable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;

View File

@@ -4,7 +4,7 @@ import android.graphics.Color;
import androidx.annotation.ColorInt;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.location.MogoLocation;
import java.util.ArrayList;

View File

@@ -1,6 +1,6 @@
package com.mogo.map.search.drive;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;

View File

@@ -1,6 +1,6 @@
package com.mogo.map.search.drive;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -1,6 +1,6 @@
package com.mogo.map.search.geo;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.ArrayList;
import java.util.List;

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.geo.query;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.inputtips;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -1,6 +1,6 @@
package com.mogo.map.search.inputtips.query;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.poisearch;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;

View File

@@ -3,7 +3,7 @@ package com.mogo.map.search.poisearch.query;
import android.os.Parcel;
import android.os.Parcelable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang

View File

@@ -1,6 +1,6 @@
package com.mogo.map.search.traffic;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
public interface IMogoTrafficSearch {

View File

@@ -1,6 +1,6 @@
package com.mogo.map.search.traffic;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import java.util.List;

View File

@@ -8,7 +8,7 @@ import android.view.animation.Interpolator;
import androidx.annotation.Nullable;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.map.marker.IMogoMarker;
import com.mogo.map.marker.anim.OnMarkerAnimationListener;

View File

@@ -1,6 +1,6 @@
package com.mogo.map.uicontroller;
import com.mogo.map.MogoLatLng;
import com.mogo.eagle.core.data.map.MogoLatLng;
/**
* @author congtaowang