opt
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package com.mogo.map.marker;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.mogo.map.MogoLatLng;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -55,4 +59,19 @@ public interface IMogoMarkerManager {
|
||||
* @param tag 需要保留的类型
|
||||
*/
|
||||
void removeMarkersExcept( String tag );
|
||||
|
||||
/**
|
||||
* 添加搜索路线
|
||||
*
|
||||
* @param context 上下文
|
||||
* @param startPoint 起点
|
||||
* @param endPoint 终点
|
||||
* @param wayPoints 途经点
|
||||
*/
|
||||
void addRouteWay( Context context, MogoLatLng startPoint, MogoLatLng endPoint, List< MogoLatLng > wayPoints );
|
||||
|
||||
/**
|
||||
* 移除添加的导航预测路线
|
||||
*/
|
||||
void removeRouteWayOverlay();
|
||||
}
|
||||
|
||||
@@ -69,4 +69,11 @@ public interface IMogoNavi {
|
||||
* @return
|
||||
*/
|
||||
boolean isNaviing();
|
||||
|
||||
/**
|
||||
* 获取路线规划策略
|
||||
*
|
||||
* @return 规划的路线
|
||||
*/
|
||||
List< MogoCalculatePath > getCalculatedStrategies();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.mogo.map.navi;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
* @since 2020-01-08
|
||||
* <p>
|
||||
* 规划路线信息
|
||||
*/
|
||||
public class MogoCalculatePath {
|
||||
|
||||
/**
|
||||
* 策略名称
|
||||
*/
|
||||
public String mStrategyName;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
public String mTime;
|
||||
|
||||
/**
|
||||
* 距离
|
||||
*/
|
||||
public String mDistance;
|
||||
|
||||
/**
|
||||
* 红绿灯个数
|
||||
*/
|
||||
public int mTrafficLights;
|
||||
|
||||
/**
|
||||
* 路线ID,用于选择那一条线
|
||||
*/
|
||||
public String mTagId;
|
||||
|
||||
/**
|
||||
* 规划的线路ID
|
||||
*/
|
||||
public int mPathId;
|
||||
|
||||
/**
|
||||
* 点击事件
|
||||
*/
|
||||
public OnItemClickInteraction mOnItemClickInteraction;
|
||||
|
||||
public MogoCalculatePath( OnItemClickInteraction onItemClickInteraction ) {
|
||||
this.mOnItemClickInteraction = onItemClickInteraction;
|
||||
}
|
||||
|
||||
public String getStrategyName() {
|
||||
return mStrategyName;
|
||||
}
|
||||
|
||||
public void setStrategyName( String mStrategyName ) {
|
||||
this.mStrategyName = mStrategyName;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return mTime;
|
||||
}
|
||||
|
||||
public void setTime( String mTime ) {
|
||||
this.mTime = mTime;
|
||||
}
|
||||
|
||||
public String getDistance() {
|
||||
return mDistance;
|
||||
}
|
||||
|
||||
public void setDistance( String mDistance ) {
|
||||
this.mDistance = mDistance;
|
||||
}
|
||||
|
||||
public int getTrafficLights() {
|
||||
return mTrafficLights;
|
||||
}
|
||||
|
||||
public void setTrafficLights( int mTrafficLights ) {
|
||||
this.mTrafficLights = mTrafficLights;
|
||||
}
|
||||
|
||||
public String getTagId() {
|
||||
return mTagId;
|
||||
}
|
||||
|
||||
public void setTagId( String mTagId ) {
|
||||
this.mTagId = mTagId;
|
||||
}
|
||||
|
||||
public int getPathId() {
|
||||
return mPathId;
|
||||
}
|
||||
|
||||
public void setPathId( int mPathId ) {
|
||||
this.mPathId = mPathId;
|
||||
}
|
||||
|
||||
public interface OnItemClickInteraction {
|
||||
|
||||
void onItemClicked( String tagId );
|
||||
}
|
||||
|
||||
public OnItemClickInteraction getOnItemClickInteraction() {
|
||||
return mOnItemClickInteraction;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user