Class LatLng

java.lang.Object
com.baidu.mapapi.model.LatLng
All Implemented Interfaces:
android.os.Parcelable

public final class LatLng extends Object implements android.os.Parcelable
地理坐标基本数据结构
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<LatLng>
     
    final double
    纬度
    final double
     
    final double
    经度
    final double
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    LatLng(double latitude, double longitude)
    构造函数
    protected
    LatLng(android.os.Parcel in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • latitude

      public final double latitude
      纬度
    • longitude

      public final double longitude
      经度
    • latitudeE6

      public final double latitudeE6
    • longitudeE6

      public final double longitudeE6
    • CREATOR

      public static final android.os.Parcelable.Creator<LatLng> CREATOR
  • Constructor Details

    • LatLng

      public LatLng(double latitude, double longitude)
      构造函数
      Parameters:
      latitude - 纬度
      longitude - 经度
    • LatLng

      protected LatLng(android.os.Parcel in)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable