Class TaxiInfo

java.lang.Object
com.baidu.mapapi.search.core.TaxiInfo
All Implemented Interfaces:
android.os.Parcelable

public class TaxiInfo 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<TaxiInfo>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    路线打车描述信息
    int
    总路程 , 单位: m
    int
    总耗时,单位: 秒
    float
    每千米单价,单位 元 , 注:此价格为白天价格
    float
    起步价,单位: 元, 注:此价格为白天价格
    float
    总价 , 单位: 元, 注:此价格为白天价格
    void
    设置路线打车描述信息
    void
    setDistance(int distance)
    设置路程长度,单位:米
    void
    setDuration(int duration)
    设置总耗时,单位: 秒
    void
    setPerKMPrice(float perKMPrice)
    设置每千米单价,单位:元
    void
    setStartPrice(float startPrice)
    设置起步价,单位:元
    void
    setTotalPrice(float totalPrice)
    设置总价
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

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

    • CREATOR

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

    • TaxiInfo

      public TaxiInfo()
  • Method Details

    • getTotalPrice

      public float getTotalPrice()
      总价 , 单位: 元, 注:此价格为白天价格
      Returns:
      总价
    • setTotalPrice

      public void setTotalPrice(float totalPrice)
      设置总价
      Parameters:
      totalPrice - 总价
    • getDesc

      public String getDesc()
      路线打车描述信息
      Returns:
      打车描述信息
    • setDesc

      public void setDesc(String desc)
      设置路线打车描述信息
      Parameters:
      desc - 路线打车描述信息
    • getDistance

      public int getDistance()
      总路程 , 单位: m
      Returns:
      总路程
    • setDistance

      public void setDistance(int distance)
      设置路程长度,单位:米
      Parameters:
      distance - 路程长度,单位:米
    • getDuration

      public int getDuration()
      总耗时,单位: 秒
      Returns:
      总耗时
    • setDuration

      public void setDuration(int duration)
      设置总耗时,单位: 秒
      Parameters:
      duration - 总耗时,单位: 秒
    • getPerKMPrice

      public float getPerKMPrice()
      每千米单价,单位 元 , 注:此价格为白天价格
      Returns:
      每千米单价,单位 元
    • setPerKMPrice

      public void setPerKMPrice(float perKMPrice)
      设置每千米单价,单位:元
      Parameters:
      perKMPrice - 每千米单价,单位:元
    • getStartPrice

      public float getStartPrice()
      起步价,单位: 元, 注:此价格为白天价格
      Returns:
    • setStartPrice

      public void setStartPrice(float startPrice)
      设置起步价,单位:元
      Parameters:
      startPrice - 起步价,单位:元
    • 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