gotoBaiduMap

fun gotoBaiduMap(context: Context, toLatitude: Double, toLongitude: Double, coordinateType: String = CoordinateType.GCJ02, source: String = context.packageName, isRoute: Boolean, isMarket: Boolean = false, marketPackage: String? = null): Boolean

跳转到百度地图导航

参见:百度地图

Parameters

context
toLatitude

终点纬度

toLongitude

终点经度

coordinateType

坐标类型 默认为:CoordinateType.GCJ02

  •      [CoordinateType.GCJ02]   经国测局加密后的坐标系(火星坐标系)
  •      [CoordinateType.WGS84]   GPS原始坐标系
  •      [CoordinateType.BD09LL]  百度经纬度坐标系
  •      [CoordinateType.BD09MC]  百度墨卡托坐标系
source

统计来源,默认取当前APK包名

isRoute

为true表示跳转到地图路线规划,为false表示跳转到导航

isMarket

当检测到未安装目标App时,是否跳转到应用市场,默认为false,表示不跳转

marketPackage

当跳转到应用市场时,指定具体的应用市场包名。如:华为,小米,应用宝等各大应用市场,默认为空,表示不指定