高德地图 Windows Phone 8 搜索API参考手册
Assembly: WindowPhone8DOC (in WindowPhone8DOC.dll) Version: 2.0.0.0
返回一条最优驾车路线,详见AMapRouteResults定义
根据起点和终点查询最优的一条驾车路线,可以设置途经点、避让区域、避让道路,起点参考POIID, 终点参考POIID
Namespace: Com.AMap.Api.ServicesAssembly: WindowPhone8DOC (in WindowPhone8DOC.dll) Version: 2.0.0.0
Syntax
public static Task<AMapRouteResults> DrivingNavigation( double originX, double originY, double destinationX, double destinationY, Extensions extensions, string originid = null, string destinationid = null, List<AMapLocation> waypoints = null, List<AMapPolygon> avoidpolygons = null, string avoidroad = null )
Parameters
- originX
- Type: System Double
出发地经度
- originY
- Type: System Double
出发地纬度
- destinationX
- Type: System Double
目的地经度
- destinationY
- Type: System Double
目的地纬度
- extensions
- Type: Com.AMap.Api.Services Extensions
返回结果控制,All返回基本信息以外的扩展信息,Base只返回基本信息,默认为Base
- originid (Optional)
- Type: System String
出发点 POI ID,当起点为POI中获取坐标时建议填充此值
- destinationid (Optional)
- Type: System String
目的地 POI ID,当起点为POI中获取坐标时建议填充此值
- waypoints (Optional)
- Type: System.Collections.Generic List AMapLocation
途经点数组,数组中存放AMapGeoPoint对象
- avoidpolygons (Optional)
- Type: System.Collections.Generic List AMapPolygon
避让区域数组,数组中存放AMapGeoPolygon对象,支持32个避让区域,每个区域最多可有16个顶点
- avoidroad (Optional)
- Type: System String
避让道路名,只支持一条避让道路
Return Value
Type: Task AMapRouteResults返回一条最优驾车路线,详见AMapRouteResults定义
See Also