| 程序包 | 说明 |
|---|---|
| com.amap.api.navi |
导航基础包,提供路径规划、导航等基础功能。
|
| com.amap.api.navi.model |
导航模型包,大部分是通过接口回调透传给用户使用,如:导航路径、导航信息、位置信息等.
|
| 限定符和类型 | 方法和说明 |
|---|---|
NaviLatLng |
AMapNaviMarkerOptions.getPosition() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AMapNavi.calculateEleBikeRoute(NaviLatLng to)
骑行(电动车)经纬度算路 (不带起点,默认为当前位置)
Electric bicycle route calculation based on latitude and longitude (without a specified starting point, defaults to current position). |
boolean |
AMapNavi.calculateEleBikeRoute(NaviLatLng from,
NaviLatLng to)
骑行(电动车)经纬度算路
Electric bicycle route calculation based on latitude and longitude. |
boolean |
AMapNavi.calculateRideRoute(NaviLatLng to)
骑行(自行车)经纬度算路 (不带起点,默认为当前位置)
Cycling (bicycle) route calculation based on latitude and longitude (without starting point, defaulting to current position). |
boolean |
AMapNavi.calculateRideRoute(NaviLatLng from,
NaviLatLng to)
骑行(自行车)经纬度算路 (包含起点)。
|
boolean |
AMapNavi.calculateWalkRoute(NaviLatLng to)
计算步行路径(不带起点,默认为当前位置)。
|
boolean |
AMapNavi.calculateWalkRoute(NaviLatLng from,
NaviLatLng to)
计算步行路径(包含起点)。
|
int |
AMapNavi.calculateWalkRouteReturnRequestId(NaviLatLng to) |
void |
AMapNaviMarkerOptions.setPosition(NaviLatLng position) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
AMapNavi.calculateDriveRoute(java.util.List<NaviLatLng> to,
java.util.List<NaviLatLng> wayPoints,
int strategy)
计算驾车路径(不带起点,起点默认为当前位置)
Calculate the driving route without specifying the starting point, which defaults to the current location. |
boolean |
AMapNavi.calculateDriveRoute(java.util.List<NaviLatLng> to,
java.util.List<NaviLatLng> wayPoints,
int strategy)
计算驾车路径(不带起点,起点默认为当前位置)
Calculate the driving route without specifying the starting point, which defaults to the current location. |
boolean |
AMapNavi.calculateDriveRoute(java.util.List<NaviLatLng> from,
java.util.List<NaviLatLng> to,
java.util.List<NaviLatLng> wayPoints,
int strategy)
计算驾车路径(包含起点)
Calculate the driving route including the starting point. |
boolean |
AMapNavi.calculateDriveRoute(java.util.List<NaviLatLng> from,
java.util.List<NaviLatLng> to,
java.util.List<NaviLatLng> wayPoints,
int strategy)
计算驾车路径(包含起点)
Calculate the driving route including the starting point. |
boolean |
AMapNavi.calculateDriveRoute(java.util.List<NaviLatLng> from,
java.util.List<NaviLatLng> to,
java.util.List<NaviLatLng> wayPoints,
int strategy)
计算驾车路径(包含起点)
Calculate the driving route including the starting point. |
| 限定符和类型 | 字段和说明 |
|---|---|
NaviLatLng |
AMapNotAvoidInfo.coord2D
二维位置
2D position |
NaviLatLng |
AMapNotAvoidInfo.coord3D
三维位置
3D position |
| 限定符和类型 | 方法和说明 |
|---|---|
NaviLatLng |
AMapNaviPath.getCenterForPath()
返回当前导航路线的中心点
Return the center point of the current navigation route. |
NaviLatLng |
AMapNaviGuide.getCoord()
聚合段入口点的坐标
Coordinates of the aggregated segment entrance point |
NaviLatLng |
AMapNaviLocation.getCoord()
获取当前位置的经纬度坐标
Get the latitude and longitude coordinates of the current position |
NaviLatLng |
AMapServiceAreaInfo.getCoordinate()
获取服务区位置
Get service area location |
NaviLatLng |
AMapNaviPath.getEndPoint()
获取当前路线方案的搜索终点(中心点)坐标
Get the search end point (center point) coordinates of the current route plan. |
NaviLatLng |
AMapNaviRouteGuideGroup.getGroupEnterCoord()
获取该路线详情分组的起点坐标
Get the starting point coordinates of this route detail group |
NaviLatLng |
AMapNaviSituationInfo.getLatLng()
获得事件的位置点(经纬度)
|
NaviLatLng |
AMapNaviPath.getStartPoint()
获取当前路线方案的搜索起点坐标
Get the search start point coordinates of the current route plan. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<NaviLatLng> |
AMapNaviPath.getCoordList()
返回当前导航路线的所有坐标点
Return all coordinate points of the current navigation route. |
java.util.ArrayList<NaviLatLng> |
AMapCongestionLink.getCoords()
获取拥堵道路link形状点集
Get the shape point set of the congestion road link |
java.util.List<NaviLatLng> |
AMapNaviLink.getCoords()
获取该Link道路坐标点集
Get the coordinate point set of this Link road |
java.util.List<NaviLatLng> |
AMapNaviStep.getCoords()
获取该路段坐标点集
Get the coordinate point set of this route segment |
java.util.List<NaviLatLng> |
AMapNaviPath.getLightList()
获取道路上的红绿灯列表
Get the list of traffic lights on the road |
java.util.List<NaviLatLng> |
AMapNaviPath.getWayPoint()
获取当前路径的途经点坐标
Get the coordinates of waypoints on the current path. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AMapNaviGuide.setCoord(NaviLatLng latlng)
设置聚合段入口点的坐标
Set coordinates of the aggregated segment entrance point |