• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java SearchResult类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.baidu.mapapi.search.core.SearchResult的典型用法代码示例。如果您正苦于以下问题:Java SearchResult类的具体用法?Java SearchResult怎么用?Java SearchResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



SearchResult类属于com.baidu.mapapi.search.core包,在下文中一共展示了SearchResult类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onGetWalkingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
/**
 * 步行路线
 *
 * @param walkingRouteResult
 */
@Override
public void onGetWalkingRouteResult(WalkingRouteResult walkingRouteResult) {
    if (walkingRouteResult == null || walkingRouteResult.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (walkingRouteResult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // walkingRouteResult.getSuggestAddrInfo()
        return;
    }
    if (walkingRouteResult.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        route = walkingRouteResult.getRouteLines().get(0);
        WalkingRouteOverlay overlay = new MyWalkingRouteOverlay(mBaiduMap);
        mBaiduMap.setOnMarkerClickListener(overlay);
        routeOverlay = overlay;
        overlay.setData(walkingRouteResult.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:27,代码来源:GeoCodeActivity.java


示例2: onGetTransitRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
/**
 * 公交路线
 *
 * @param transitRouteResult
 */
@Override
public void onGetTransitRouteResult(TransitRouteResult transitRouteResult) {
    if (transitRouteResult == null || transitRouteResult.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(this, "抱歉,未找到结果!", Toast.LENGTH_SHORT).show();
    }
    if (transitRouteResult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // transitRouteResult.getSuggestAddrInfo()
        return;
    }
    if (transitRouteResult.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        route = transitRouteResult.getRouteLines().get(0);
        TransitRouteOverlay overlay = new MyTransitRouteOverlay(mBaiduMap);
        mBaiduMap.setOnMarkerClickListener(overlay);
        routeOverlay = overlay;
        overlay.setData(transitRouteResult.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:27,代码来源:GeoCodeActivity.java


示例3: onGetDrivingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
/**
 * 驾车路线
 *
 * @param drivingRouteResult
 */
@Override
public void onGetDrivingRouteResult(DrivingRouteResult drivingRouteResult) {
    if (drivingRouteResult == null || drivingRouteResult.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(this, "抱歉,未能找到结果!", Toast.LENGTH_SHORT).show();
    }
    if (drivingRouteResult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // drivingRouteResult.getSuggestAddrInfo()
        return;
    }
    if (drivingRouteResult.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        route = drivingRouteResult.getRouteLines().get(0);
        DrivingRouteOverlay overlay = new MyDrivingRouteOverlay(mBaiduMap);
        routeOverlay = overlay;
        mBaiduMap.setOnMarkerClickListener(overlay);
        overlay.setData(drivingRouteResult.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:27,代码来源:GeoCodeActivity.java


示例4: onGetBikingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
/**
 * 骑车路线
 *
 * @param bikingRouteResult
 */
@Override
public void onGetBikingRouteResult(BikingRouteResult bikingRouteResult) {
    if (bikingRouteResult == null || bikingRouteResult.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (bikingRouteResult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // result.getSuggestAddrInfo()
        return;
    }
    if (bikingRouteResult.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        route = bikingRouteResult.getRouteLines().get(0);
        BikingRouteOverlay overlay = new MyBikingRouteOverlay(mBaiduMap);
        routeOverlay = overlay;
        mBaiduMap.setOnMarkerClickListener(overlay);
        overlay.setData(bikingRouteResult.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:27,代码来源:GeoCodeActivity.java


示例5: onGetWalkingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetWalkingRouteResult(WalkingRouteResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanDemo.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // result.getSuggestAddrInfo()
        return;
    }
    if (result.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = result.getRouteLines().get(0);
        WalkingRouteOverlay overlay = new MyWalkingRouteOverlay(mBaidumap);
        mBaidumap.setOnMarkerClickListener(overlay);
        routeOverlay = overlay;
        overlay.setData(result.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }

}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:25,代码来源:RoutePlanDemo.java


示例6: onGetTransitRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetTransitRouteResult(TransitRouteResult result) {

    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanDemo.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // result.getSuggestAddrInfo()
        return;
    }
    if (result.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = result.getRouteLines().get(0);
        TransitRouteOverlay overlay = new MyTransitRouteOverlay(mBaidumap);
        mBaidumap.setOnMarkerClickListener(overlay);
        routeOverlay = overlay;
        overlay.setData(result.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:25,代码来源:RoutePlanDemo.java


示例7: onGetDrivingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetDrivingRouteResult(DrivingRouteResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanDemo.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // result.getSuggestAddrInfo()
        return;
    }
    if (result.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = result.getRouteLines().get(0);
        DrivingRouteOverlay overlay = new MyDrivingRouteOverlay(mBaidumap);
        routeOverlay = overlay;
        mBaidumap.setOnMarkerClickListener(overlay);
        overlay.setData(result.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:24,代码来源:RoutePlanDemo.java


示例8: onGetBikingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetBikingRouteResult(BikingRouteResult bikingRouteResult) {
    if (bikingRouteResult == null || bikingRouteResult.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanDemo.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (bikingRouteResult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // result.getSuggestAddrInfo()
        return;
    }
    if (bikingRouteResult.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = bikingRouteResult.getRouteLines().get(0);
        BikingRouteOverlay overlay = new MyBikingRouteOverlay(mBaidumap);
        routeOverlay = overlay;
        mBaidumap.setOnMarkerClickListener(overlay);
        overlay.setData(bikingRouteResult.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:shenhuanet,项目名称:AndroidOpen,代码行数:24,代码来源:RoutePlanDemo.java


示例9: onGetGeoCodeResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
public void onGetGeoCodeResult(GeoCodeResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(TrackActivity.this, "抱歉,未能找到结果", Toast.LENGTH_LONG)
                .show();
        return;
    }
    mBaiduMap.clear();
    //定位
    String strInfo = String.format("纬度:%f 经度:%f",
            result.getLocation().latitude, result.getLocation().longitude);
    Toast.makeText(TrackActivity.this, strInfo, Toast.LENGTH_LONG).show();
    //click()


    //result保存地理编码的结果 城市-->坐标
}
 
开发者ID:InnoFang,项目名称:ChangTu,代码行数:17,代码来源:TrackActivity.java


示例10: onGetReverseGeoCodeResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
public void onGetReverseGeoCodeResult(ReverseGeoCodeResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(TrackActivity.this, "抱歉,未能找到结果", Toast.LENGTH_LONG)
                .show();
        return;
    }
    Toast.makeText(TrackActivity.this, result.getAddress(),
            Toast.LENGTH_LONG).show();
    Log.i("MYWEIZHI", result.getAddress());
    setStatus(result.getAddress());

    Date curDate = new Date(System.currentTimeMillis());//获取当前时间
    SimpleDateFormat format;
    format = new SimpleDateFormat("HH:mm:ss");
    String str = format.format(curDate);
    Log.e("time", "time2" + str);
    //将时间位置信息保存到list中

    //result保存翻地理编码的结果 坐标-->城市
}
 
开发者ID:InnoFang,项目名称:ChangTu,代码行数:21,代码来源:TrackActivity.java


示例11: onGetTransitRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetTransitRouteResult(TransitRouteResult result) {

	if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
		Toast.makeText(TransferOnlineActivity.this, "��Ǹ��δ�ҵ����",
				Toast.LENGTH_SHORT).show();
	}
	if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
		// ���յ��;�����ַ����壬ͨ�����½ӿڻ�ȡ�����ѯ��Ϣ
		// result.getSuggestAddrInfo()
		return;
	}
	if (result.error == SearchResult.ERRORNO.NO_ERROR) {
		nodeIndex = -1;
		mBtnPre.setVisibility(View.VISIBLE);
		mBtnNext.setVisibility(View.VISIBLE);
		route = result.getRouteLines().get(0);
		TransitRouteOverlay overlay = new MyTransitRouteOverlay(mBaidumap);
		mBaidumap.setOnMarkerClickListener(overlay);
		routeOverlay = overlay;
		overlay.setData(result.getRouteLines().get(0));
		overlay.addToMap();
		overlay.zoomToSpan();
	}
}
 
开发者ID:ContentCoderJian,项目名称:SmartTransXA,代码行数:26,代码来源:TransferOnlineActivity.java


示例12: onGetBusLineResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetBusLineResult(BusLineResult result) {
	if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
		Toast.makeText(BusLineOnlineActivity.this, "��Ǹ��δ�ҵ����",
				Toast.LENGTH_LONG).show();
		return;
	}
	mBaiduMap.clear();
	route = result;
	nodeIndex = -1;
	overlay.removeFromMap();
	overlay.setData(result);
	overlay.addToMap();
	overlay.zoomToSpan();
	mBtnPre.setVisibility(View.VISIBLE);
	mBtnNext.setVisibility(View.VISIBLE);
	Toast.makeText(BusLineOnlineActivity.this, result.getBusLineName(),
			Toast.LENGTH_SHORT).show();
}
 
开发者ID:ContentCoderJian,项目名称:SmartTransXA,代码行数:20,代码来源:BusLineOnlineActivity.java


示例13: onGetPoiResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetPoiResult(PoiResult result) {
	if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
		Toast.makeText(BusLineOnlineActivity.this, "��Ǹ��δ�ҵ����",
				Toast.LENGTH_LONG).show();
		return;
	}
	// ��������poi���ҵ�����Ϊ������·��poi
	busLineIDList.clear();
	for (PoiInfo poi : result.getAllPoi()) {
		if (poi.type == PoiInfo.POITYPE.BUS_LINE
				|| poi.type == PoiInfo.POITYPE.SUBWAY_LINE) {
			busLineIDList.add(poi.uid);
		}
	}
	SearchOppositeBusline(null);
	route = null;

}
 
开发者ID:ContentCoderJian,项目名称:SmartTransXA,代码行数:20,代码来源:BusLineOnlineActivity.java


示例14: onGetWalkingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetWalkingRouteResult(WalkingRouteResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanActivity.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        //起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        //result.getSuggestAddrInfo()
        return;
    }
    if (result.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = result.getRouteLines().get(0);
        WalkingRouteOverlay overlay = new MyWalkingRouteOverlay(mBaidumap);
        mBaidumap.setOnMarkerClickListener(overlay);
        routeOverlay = overlay;
        overlay.setData(result.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }

}
 
开发者ID:BeckNiu,项目名称:MyCar,代码行数:25,代码来源:RoutePlanActivity.java


示例15: onGetTransitRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetTransitRouteResult(TransitRouteResult result) {

    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanActivity.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        //起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        //result.getSuggestAddrInfo()
        return;
    }
    if (result.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = result.getRouteLines().get(0);
        TransitRouteOverlay overlay = new MyTransitRouteOverlay(mBaidumap);
        mBaidumap.setOnMarkerClickListener(overlay);
        routeOverlay = overlay;
        overlay.setData(result.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:BeckNiu,项目名称:MyCar,代码行数:25,代码来源:RoutePlanActivity.java


示例16: onGetDrivingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetDrivingRouteResult(DrivingRouteResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlanActivity.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        //起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        //result.getSuggestAddrInfo()
        return;
    }
    if (result.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = result.getRouteLines().get(0);
        DrivingRouteOverlay overlay = new MyDrivingRouteOverlay(mBaidumap);
        routeOverlay = overlay;
        mBaidumap.setOnMarkerClickListener(overlay);
        overlay.setData(result.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:BeckNiu,项目名称:MyCar,代码行数:24,代码来源:RoutePlanActivity.java


示例17: onGetBusLineResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetBusLineResult(BusLineResult result) {
    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(BusLineSearchActivity.this, "抱歉,未找到结果",
                Toast.LENGTH_LONG).show();
        return;
    }
    mBaiduMap.clear();
    route = result;
    nodeIndex = -1;
    overlay.removeFromMap();
    overlay.setData(result);
    overlay.addToMap();
    overlay.zoomToSpan();
    mBtnPre.setVisibility(View.VISIBLE);
    mBtnNext.setVisibility(View.VISIBLE);
    Toast.makeText(BusLineSearchActivity.this, result.getBusLineName(),
            Toast.LENGTH_SHORT).show();
}
 
开发者ID:BeckNiu,项目名称:MyCar,代码行数:20,代码来源:BusLineSearchActivity.java


示例18: onGetPoiResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetPoiResult(PoiResult result) {

    if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(BusLineSearchActivity.this, "抱歉,未找到结果",
                Toast.LENGTH_LONG).show();
        return;
    }
    // 遍历所有poi,找到类型为公交线路的poi
    busLineIDList.clear();
    for (PoiInfo poi : result.getAllPoi()) {
        if (poi.type == PoiInfo.POITYPE.BUS_LINE
                || poi.type == PoiInfo.POITYPE.SUBWAY_LINE) {
            busLineIDList.add(poi.uid);
        }
    }
    SearchNextBusline(null);
    route = null;
}
 
开发者ID:BeckNiu,项目名称:MyCar,代码行数:20,代码来源:BusLineSearchActivity.java


示例19: onGetWalkingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
    public void onGetWalkingRouteResult(WalkingRouteResult result) {
        if (result == null || result.error != SearchResult.ERRORNO.NO_ERROR) {
            DialogUtil.showToast(this, "抱歉,未找到结果", 0);
        }
        if (result.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
            //起终点或途经点地址有岐义,通过以下接口获取建议查询信息
            //result.getSuggestAddrInfo()
            return;
        }
        if (result.error == SearchResult.ERRORNO.NO_ERROR) {
//            nodeIndex = -1;
//            route = result.getRouteLines().get(0);
            WalkingRouteOverlay overlay = new MyWalkingRouteOverlay(mBaiduMap);
            mBaiduMap.setOnMarkerClickListener(overlay);
//            routeOverlay = overlay;
            overlay.setData(result.getRouteLines().get(0));
            overlay.addToMap();
            overlay.zoomToSpan();
        }
    }
 
开发者ID:CrazyRunning,项目名称:MyStudyHelper,代码行数:22,代码来源:MapActivity.java


示例20: onGetBikingRouteResult

import com.baidu.mapapi.search.core.SearchResult; //导入依赖的package包/类
@Override
public void onGetBikingRouteResult(BikingRouteResult bikingRouteResult) {
    if (bikingRouteResult == null || bikingRouteResult.error != SearchResult.ERRORNO.NO_ERROR) {
        Toast.makeText(RoutePlan.this, "抱歉,未找到结果", Toast.LENGTH_SHORT).show();
    }
    if (bikingRouteResult.error == SearchResult.ERRORNO.AMBIGUOUS_ROURE_ADDR) {
        // 起终点或途经点地址有岐义,通过以下接口获取建议查询信息
        // result.getSuggestAddrInfo()
        return;
    }
    if (bikingRouteResult.error == SearchResult.ERRORNO.NO_ERROR) {
        nodeIndex = -1;
        mBtnPre.setVisibility(View.VISIBLE);
        mBtnNext.setVisibility(View.VISIBLE);
        route = bikingRouteResult.getRouteLines().get(0);
        BikingRouteOverlay overlay = new MyBikingRouteOverlay(mBaidumap);
        routeOverlay = overlay;
        mBaidumap.setOnMarkerClickListener(overlay);
        overlay.setData(bikingRouteResult.getRouteLines().get(0));
        overlay.addToMap();
        overlay.zoomToSpan();
    }
}
 
开发者ID:modricwang,项目名称:FindYou,代码行数:24,代码来源:RoutePlan.java



注:本文中的com.baidu.mapapi.search.core.SearchResult类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CommonTreeAdaptor类代码示例发布时间:2022-05-21
下一篇:
Java ImageData类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap