1866 lines
91 KiB
Objective-C
1866 lines
91 KiB
Objective-C
//
|
||
// AMapNaviCommonObj.h
|
||
// AMapNaviKit
|
||
//
|
||
// Created by AutoNavi on 14-7-1.
|
||
// Copyright (c) 2014年 Amap. All rights reserved.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
#import <CoreLocation/CLLocation.h>
|
||
#import <AMapFoundationKit/AMapServices.h>
|
||
|
||
@class AMapNaviRoute;
|
||
|
||
///AMapNavi的错误Domain
|
||
///AMapNavi error domain
|
||
extern NSString * const AMapNaviErrorDomain;
|
||
|
||
typedef NS_ENUM(int, AMapNaviAudioOutputMode)
|
||
{
|
||
AMapNaviAudioOutputModeNone = 0, //未设置
|
||
AMapNaviAudioOutputModeText, //普通播报
|
||
AMapNaviAudioOutputModeSpecial //特色语音包播报
|
||
};
|
||
|
||
///AMapNavi的错误信息
|
||
///AMapNavi error message
|
||
typedef NS_ENUM(NSInteger, AMapNaviError)
|
||
{
|
||
AMapNaviUnknowError = -1, ///< 未知错误 Unknown error
|
||
AMapNaviErrorNoGPSPermission = -2, ///< 没有定位权限 No location permission
|
||
AMapNaviErrorNoFullGPSAccuracyPermission = -3, ///< 没有定位的精确位置权限 No precise location permission
|
||
};
|
||
|
||
///导航模式
|
||
///Navigation mode
|
||
typedef NS_ENUM(NSInteger, AMapNaviMode)
|
||
{
|
||
AMapNaviModeNone = 0, ///< 没有开始导航 Navigation not started
|
||
AMapNaviModeGPS, ///< 实时导航 Real-time navigation
|
||
AMapNaviModeEmulator, ///< 模拟导航 Simulation navigation
|
||
};
|
||
|
||
///导航界面跟随模式
|
||
///Navigation interface follow mode
|
||
typedef NS_ENUM(NSInteger, AMapNaviViewTrackingMode)
|
||
{
|
||
AMapNaviViewTrackingModeMapNorth = 0, ///< 0 正北朝上 North up
|
||
AMapNaviViewTrackingModeCarNorth, ///< 1 车头朝上 Head up
|
||
};
|
||
|
||
///驾车导航界面显示模式
|
||
///Driving navigation interface display mode
|
||
typedef NS_ENUM(NSInteger, AMapNaviDriveViewShowMode)
|
||
{
|
||
AMapNaviDriveViewShowModeCarPositionLocked = 1, ///< 锁车状态 Locked state
|
||
AMapNaviDriveViewShowModeOverview = 2, ///< 全览状态 Overview state
|
||
AMapNaviDriveViewShowModeNormal = 3, ///< 普通状态 Normal state
|
||
};
|
||
|
||
///骑步行算路策略. since 7.5.0
|
||
///Biking/walking route planning strategy
|
||
typedef NS_ENUM(NSInteger, AMapNaviTravelStrategy)
|
||
{
|
||
AMapNaviTravelStrategySingleDefault = 1000, ///< 算路支持一条 Route calculation supports one route
|
||
AMapNaviTravelStrategyMultipleDefault = 1001, ///< 算路支持多条 Route calculation supports multiple routes
|
||
};
|
||
|
||
///驾车、货车路径规划策略.
|
||
///Car and truck route planning strategies
|
||
typedef NS_ENUM(NSInteger, AMapNaviDrivingStrategy)
|
||
{
|
||
AMapNaviDrivingStrategySingleInvalid = -1, ///< -1 非法 Illegal
|
||
AMapNaviDrivingStrategySingleDefault = 0, ///< 0 单路径: 默认,速度优先(常规最快) Single route: Default, speed priority (conventionally fastest)
|
||
AMapNaviDrivingStrategySingleAvoidCost = 1, ///< 1 单路径: 避免收费 Single route: Avoid tolls
|
||
AMapNaviDrivingStrategySinglePrioritiseDistance = 2, ///< 2 单路径: 距离优先 Single route: Distance priority
|
||
AMapNaviDrivingStrategySingleAvoidExpressway = 3, ///< 3 单路径: 不走快速路 Single route: Avoid expressways
|
||
AMapNaviDrivingStrategySingleAvoidCongestion = 4, ///< 4 单路径: 躲避拥堵 Single route: Avoid congestion
|
||
AMapNaviDrivingStrategySinglePrioritiseSpeedCostDistance = 5, ///< 5 单路径: 速度优先 & 费用优先 & 距离优先 Single route: Speed first & cost first & distance first
|
||
AMapNaviDrivingStrategySingleAvoidHighway = 6, ///< 6 单路径: 不走高速 Single route: avoid highways
|
||
AMapNaviDrivingStrategySingleAvoidHighwayAndCost = 7, ///< 7 单路径: 不走高速 & 避免收费 Single route: avoid highways & avoid tolls
|
||
AMapNaviDrivingStrategySingleAvoidCostAndCongestion = 8, ///< 8 单路径: 避免收费 & 躲避拥堵 Single route: avoid tolls & avoid congestion
|
||
AMapNaviDrivingStrategySingleAvoidHighwayAndCostAndCongestion = 9, ///< 9 单路径: 不走高速 & 避免收费 & 躲避拥堵 Single route: avoid highways & avoid tolls & avoid congestion
|
||
|
||
AMapNaviDrivingStrategyMultipleDefault = 10, ///< 10 多路径: 默认,速度优先(避让拥堵+速度优先+避免收费) Multiple routes: Default, Speed priority (Avoid congestion + Speed priority + Avoid tolls)
|
||
AMapNaviDrivingStrategyMultipleShortestTimeDistance = 11, ///< 11 多路径: 时间最短 & 距离最短 Multiple routes: Shortest time & Shortest distance
|
||
AMapNaviDrivingStrategyMultipleAvoidCongestion = 12, ///< 12 多路径: 躲避拥堵 Multiple routes: Avoid congestion
|
||
AMapNaviDrivingStrategyMultipleAvoidHighway = 13, ///< 13 多路径: 不走高速 Multiple routes: Avoid highways
|
||
AMapNaviDrivingStrategyMultipleAvoidCost = 14, ///< 14 多路径: 避免收费 Multiple routes: Avoid tolls
|
||
AMapNaviDrivingStrategyMultipleAvoidHighwayAndCongestion = 15, ///< 15 多路径: 不走高速 & 躲避拥堵 Multiple routes: Avoid highways & Avoid congestion
|
||
AMapNaviDrivingStrategyMultipleAvoidHighwayAndCost = 16, ///< 16 多路径: 不走高速 & 避免收费 Multiple routes: Avoid highways & Avoid tolls
|
||
AMapNaviDrivingStrategyMultipleAvoidCostAndCongestion = 17, ///< 17 多路径: 避免收费 & 躲避拥堵 Multiple routes: Avoid tolls & Avoid congestion
|
||
AMapNaviDrivingStrategyMultipleAvoidHighwayAndCostAndCongestion = 18, ///< 18 多路径: 不走高速 & 避免收费 & 躲避拥堵 Multiple routes: Avoid highways & Avoid tolls & Avoid congestion
|
||
AMapNaviDrivingStrategyMultiplePrioritiseHighway = 19, ///< 19 多路径: 高速优先 Multiple routes: Highway priority
|
||
AMapNaviDrivingStrategyMultiplePrioritiseHighwayAvoidCongestion = 20, ///< 20 多路径: 高速优先 & 躲避拥堵 Multiple routes: Highway priority & Avoid congestion
|
||
|
||
AMapNaviMotorStrategyMultipleDefault = 2001, ///< 2001 针对摩托车多路径: 默认 Multiple routes for motorcycles: Default since 8.0.0
|
||
AMapNaviMotorStrategyMultipleAvoidHighway = 2002, ///< 2002 针对摩托车多路径: 不走高速 Multiple routes for motorcycles: Avoid highways since 8.0.0
|
||
AMapNaviMotorStrategyMultiplePrioritiseHighway = 2003, ///< 2003 针对摩托车多路径: 高速优先 Multiple routes for motorcycles: Highway priority since 8.0.0
|
||
AMapNaviMotorStrategyMultipleAvoidCost = 2004, ///< 2004 针对摩托车多路径: 避免收费 Multiple routes for motorcycles: Avoid tolls since 8.0.0
|
||
AMapNaviDrivingStrategySingleAvoidHighwayAvoidCongestion = 100, ///单路径:不走高速&躲避拥堵 Single route: Avoid highways & traffic congestion since10.2.0
|
||
AMapNaviDrivingStrategySinglePrioritiseHighway = 101, ///单路径:高速优先&速度优先 Single route: Highway priority & Speed priority since10.2.0
|
||
AMapNaviDrivingStrategySinglePrioritiseHighwayAvoidCongestion = 102, ///单路径:高速优先&躲避拥堵 Single route: prioritize highways & avoid congestion since10.2.0
|
||
AMapNaviDrivingStrategySinglePrioritiseHighwayAndDistance = 103, ///单路径:高速优先&距离优先 Single route: Highway priority & Distance priority since10.2.0
|
||
AMapNaviDrivingStrategySingleAvoidHighwayAndShortestDistance = 104, /// 单路径:不走高速&距离优先 Single path: Do not take highways&prioritize distance since since10.2.0
|
||
AMapNaviDrivingStrategySingleAvoidHighwayPrioritiseSpeedCostDistance = 105, ///单路径:不走高速&速度优先&费用优先&距离优先 Single route: avoid highways & speed first & cost first & distance first since10.2.0
|
||
|
||
};
|
||
|
||
///路径计算状态
|
||
///Route calculation status
|
||
typedef NS_ENUM(NSInteger, AMapNaviCalcRouteState)
|
||
{
|
||
AMapNaviCalcRouteStateEnvFailed = 0, ///< 0 环境初始化错误 Environment initialization error
|
||
AMapNaviCalcRouteStateSucceed = 1, ///< 1 路径计算成功 Path calculation successful
|
||
AMapNaviCalcRouteStateNetworkError = 2, ///< 2 网络失败 Network failure
|
||
AMapNaviCalcRouteStateStartPointError = 3, ///< 3 起点错误 Starting point error
|
||
AMapNaviCalcRouteStateProtocolError = 4, ///< 4 协议解析错误 Protocol parsing error
|
||
AMapNaviCalcRouteStateCallCenterError = 5, ///< 5 呼叫中心错误 Call center error
|
||
AMapNaviCalcRouteStateEndPointError = 6, ///< 6 终点错误 Destination error
|
||
AMapNaviCalcRouteStateEncodeFalse = 7, ///< 7 服务端编码错误 Server encoding error
|
||
AMapNaviCalcRouteStateLackPreview = 8, ///< 8 数据缺乏预览数据 Data lacks preview data
|
||
AMapNaviCalcRouteStateDataBufError = 9, ///< 9 数据格式错误 Data format error
|
||
AMapNaviCalcRouteStateStartRouteError = 10, ///< 10 没有找到通向起点的道路 No route found to the starting point
|
||
AMapNaviCalcRouteStateEndRouteError = 11, ///< 11 没有找到通向终点的道路 No route found to the destination
|
||
AMapNaviCalcRouteStatePassRouteError = 12, ///< 12 没有找到通向途经点的道路 No route found to the waypoint
|
||
AMapNaviCalcRouteStateRouteFail = 13, ///< 13 算路失败(未知错误) Route calculation failed (unknown error)
|
||
AMapNaviCalcRouteStateDistanceTooLong = 19, ///< 19 起点/终点/途经点的距离太长 The distance of the origin/destination/waypoints is too long
|
||
AMapNaviCalcRouteStatePassPointError = 21, ///< 21 途经点错误 Incorrect waypoints
|
||
AMapNaviCalcRouteStateHaveNewCalcTaskWorking = 2999, ///< 2999 有新的算路任务进行中导致本次算路失败 Route calculation failed due to a new routing task in progress
|
||
AMapNaviCalcRouteStateCLAuthorizationStatusDenied = 3000, ///< 3000 无定位权限 No location permission
|
||
AMapNaviCalcRouteStateCLAuthorizationReducedAccuracy = 3001,///< 3001 无定位的精确位置权限 No precise location permission
|
||
};
|
||
|
||
///导航段转向图标类型
|
||
///Navigation segment turn icon types
|
||
typedef NS_ENUM(NSInteger, AMapNaviIconType)
|
||
{
|
||
AMapNaviIconTypeNone = 0, ///< 0 无定义 Undefined
|
||
AMapNaviIconTypeDefault, ///< 1 车图标 Car icon
|
||
AMapNaviIconTypeLeft, ///< 2 左转图标 Left turn icon
|
||
AMapNaviIconTypeRight, ///< 3 右转图标 Right turn icon
|
||
AMapNaviIconTypeLeftFront, ///< 4 左前方图标 Front left icon
|
||
AMapNaviIconTypeRightFront, ///< 5 右前方图标 Front right icon
|
||
AMapNaviIconTypeLeftBack, ///< 6 左后方图标 Rear left icon
|
||
AMapNaviIconTypeRightBack, ///< 7 右后方图标 Rear right icon
|
||
AMapNaviIconTypeLeftAndAround, ///< 8 左转掉头图标 U-turn left icon
|
||
AMapNaviIconTypeStraight, ///< 9 直行图标 Straight icon
|
||
AMapNaviIconTypeArrivedWayPoint, ///< 10 到达途经点图标 Waypoint arrival icon
|
||
AMapNaviIconTypeEnterRoundabout, ///< 11 进入环岛图标 Enter roundabout icon
|
||
AMapNaviIconTypeOutRoundabout, ///< 12 驶出环岛图标 Exit roundabout icon
|
||
AMapNaviIconTypeArrivedServiceArea, ///< 13 到达服务区图标 Arrive at service area icon
|
||
AMapNaviIconTypeArrivedTollGate, ///< 14 到达收费站图标 Arrive at toll station icon
|
||
AMapNaviIconTypeArrivedDestination, ///< 15 到达目的地图标 Arrive at destination icon
|
||
AMapNaviIconTypeArrivedTunnel, ///< 16 进入隧道图标 Enter tunnel icon
|
||
AMapNaviIconTypeEntryLeftRing, ///< 17 进入环岛图标,左侧通行地区的顺时针环岛 Enter roundabout icon, clockwise roundabout in left-hand traffic areas
|
||
AMapNaviIconTypeLeaveLeftRing, ///< 18 驶出环岛图标,左侧通行地区的顺时针环岛 Exit roundabout icon, clockwise roundabout in left-hand traffic areas
|
||
AMapNaviIconTypeUTurnRight, ///< 19 右转掉头图标,左侧通行地区的掉头 U-turn icon for right turn, U-turn in left-hand traffic areas
|
||
AMapNaviIconTypeSpecialContinue, ///< 20 顺行图标(和直行有区别,顺行图标带有虚线) Through icon (different from going straight, the through icon has dashed lines)
|
||
AMapNaviIconTypeEntryRingLeft, ///< 21 标准小环岛 绕环岛左转,右侧通行地区的逆时针环岛 Standard small roundabout, turn left around the roundabout, counterclockwise roundabout in right-hand traffic areas
|
||
AMapNaviIconTypeEntryRingRight, ///< 22 标准小环岛 绕环岛右转,右侧通行地区的逆时针环岛 Standard small roundabout, turn right around the roundabout, counterclockwise roundabout in right-hand traffic areas
|
||
AMapNaviIconTypeEntryRingContinue, ///< 23 标准小环岛 绕环岛直行,右侧通行地区的逆时针环岛 Standard small roundabout, go straight around the roundabout, counterclockwise roundabout in right-hand traffic areas
|
||
AMapNaviIconTypeEntryRingUTurn, ///< 24 标准小环岛 绕环岛调头,右侧通行地区的逆时针环岛 Standard small roundabout, make a U-turn around the roundabout, counterclockwise roundabout in right-hand traffic areas
|
||
AMapNaviIconTypeEntryLeftRingLeft, ///< 25 标准小环岛 绕环岛左转,左侧通行地区的顺时针环岛 Standard small roundabout, turn left around the roundabout, clockwise roundabout in left-hand traffic areas
|
||
AMapNaviIconTypeEntryLeftRingRight, ///< 26 标准小环岛 绕环岛右转,左侧通行地区的顺时针环岛 Standard small roundabout, turn right around the roundabout, clockwise roundabout in left-hand traffic areas
|
||
AMapNaviIconTypeEntryLeftRingContinue, ///< 27 标准小环岛 绕环岛直行,左侧通行地区的顺时针环岛 Standard small roundabout, go straight around the roundabout, clockwise roundabout in left-hand traffic areas
|
||
AMapNaviIconTypeEntryLeftRingUTurn, ///< 28 标准小环岛 绕环岛调头,左侧通行地区的顺时针环岛 Standard small roundabout, make a U-turn around the roundabout, clockwise roundabout in left-hand traffic areas
|
||
AMapNaviIconTypeCrosswalk, ///< 29 通过人行横道图标 Via pedestrian crossing icon
|
||
AMapNaviIconTypeFlyover, ///< 30 通过过街天桥图标 Via pedestrian overpass icon
|
||
AMapNaviIconTypeUnderpass, ///< 31 通过地下通道图标 Via underground passage icon
|
||
AMapNaviIconTypeSquare, ///< 32 通过广场图标 Via square icon
|
||
AMapNaviIconTypePark, ///< 33 通过公园图标 Via park icon
|
||
AMapNaviIconTypeStaircase, ///< 34 通过扶梯图标 Via escalator icon
|
||
AMapNaviIconTypeLift, ///< 35 通过直梯图标 Via elevator icon
|
||
AMapNaviIconTypeCableway, ///< 36 通过索道图标 Via cable car icon
|
||
AMapNaviIconTypeOverheadPassage, ///< 37 通过空中通道图标 Via aerial passage icon
|
||
AMapNaviIconTypePassage, ///< 38 通过建筑物穿越通道图标 Via building passage icon
|
||
AMapNaviIconTypeWalks, ///< 39 通过行人道路图标 Via pedestrian path icon
|
||
AMapNaviIconTypeCruises, ///< 40 通过游船路线图标 Via boat route icon
|
||
AMapNaviIconTypeSightseeingbus, ///< 41 通过观光车路线图标 Via sightseeing vehicle route icon
|
||
AMapNaviIconTypeSlip, ///< 42 通过滑道图标 Via slide icon
|
||
AMapNaviIconTypeStair, ///< 43 通过阶梯图标 Via staircase icon
|
||
AMapNaviIconTypeSlope, ///< 44 通过斜坡图标 Via ramp icon
|
||
AMapNaviIconTypeBridge, ///< 45 通过桥图标 Via bridge icon
|
||
AMapNaviIconTypeFerryboat, ///< 46 通过渡轮图标 Via ferry icon
|
||
AMapNaviIconTypeSubway, ///< 47 通过地铁图标 Via subway icon
|
||
AMapNaviIconTypeEnterBuilding, ///< 48 进入建筑物图标 Enter building icon
|
||
AMapNaviIconTypeLeaveBuilding, ///< 49 离开建筑物图标 Exit building icon
|
||
AMapNaviIconTypeByElevator, ///< 50 电梯换层图标 Elevator transfer icon
|
||
AMapNaviIconTypeByStair, ///< 51 楼梯换层图标 Stair transfer icon
|
||
AMapNaviIconTypeEscalator, ///< 52 扶梯换层图标 Escalator level change icon
|
||
AMapNaviIconTypeLowTrafficCross, ///< 53 非导航段通过红绿灯路口图标 Non-navigation segment passing through traffic light intersection icon
|
||
AMapNaviIconTypeLowCross, ///< 54 非导航段通过普通路口图标 Non-navigation segment passing through regular intersection icon
|
||
AMapNaviIconTypeMergeLeft = 65, ///< 65 靠左图标 Keep left icon since 9.0.0
|
||
AMapNaviIconTypeMergeRight = 66, ///< 66 靠右图标 Keep right icon since 9.0.0
|
||
};
|
||
|
||
///导航播报类型.
|
||
///Navigation announcement type
|
||
typedef NS_ENUM(NSInteger, AMapNaviSoundType)
|
||
{
|
||
AMapNaviSoundTypeDefault = 0, ///< 默认播报 Default announcement
|
||
AMapNaviSoundTypeNavigationStart = 3016, ///< 开始导航 Start navigation since 7.8.0
|
||
AMapNaviSoundTypeNavigationEnd = 3017, ///< 到达目的地 Arrived at destination since 7.8.0
|
||
AMapNaviSoundTypeYaw = 3004, ///< 偏航播报 Off-route announcement since 7.9.0
|
||
AMapNaviSoundTypeInterrupt = 99999, ///< 打断类型(播报内容为空),表示下一句播报很重要,可能会打断前句 Interruption type (announcement content is empty), indicating the next announcement is important and may interrupt the previous one. since 7.8.0
|
||
};
|
||
|
||
///非导航状态电子眼播报类型
|
||
///Non-navigation state electronic eye announcement type
|
||
typedef NS_ENUM(NSInteger, AMapNaviDetectedMode)
|
||
{
|
||
AMapNaviDetectedModeNone = 0, ///< 0 关闭所有 Turn off all
|
||
AMapNaviDetectedModeCamera, ///< 1 仅电子眼 Only electronic eyes
|
||
AMapNaviDetectedModeSpecialRoad, ///< 2 仅特殊道路设施 Only special road facilities
|
||
AMapNaviDetectedModeCameraAndSpecialRoad, ///< 3 电子眼和特殊道路设施 Electronic eyes and special road facilities
|
||
};
|
||
|
||
///AMapNaviLink的道路类型
|
||
///Road types of AMapNaviLink
|
||
typedef NS_ENUM(NSInteger, AMapNaviRoadClass)
|
||
{
|
||
AMapNaviRoadClassHighWay = 0, ///< 0 高速公路 Highway
|
||
AMapNaviRoadClassNationalRoad, ///< 1 国道 National highway
|
||
AMapNaviRoadClassProvincialRoad, ///< 2 省道 Provincial highway
|
||
AMapNaviRoadClassCountyRoad, ///< 3 县道 County road
|
||
AMapNaviRoadClassVillageRoad, ///< 4 乡公路 Township road
|
||
AMapNaviRoadClassCountyInternalRoad, ///< 5 县乡村内部道路 Village road
|
||
AMapNaviRoadClassMainStreet, ///< 6 主要大街、城市快速道 Main streets, urban expressways
|
||
AMapNaviRoadClassMainRoad, ///< 7 主要道路 Main roads
|
||
AMapNaviRoadClassMinorRoad, ///< 8 次要道路 Secondary roads
|
||
AMapNaviRoadClassNormalRoad, ///< 9 普通道路 Ordinary roads
|
||
AMapNaviRoadClassNotNaviRoad, ///< 10 非导航道路 Non-navigation roads
|
||
};
|
||
|
||
///AMapNaviLink的主辅路信息
|
||
///AMapNaviLink's main and auxiliary road information
|
||
typedef NS_ENUM(NSInteger, AMapNaviFormWay)
|
||
{
|
||
AMapNaviFormWayNone = -1, ///< -1 无效 Invalid
|
||
AMapNaviFormWayMainRoad = 1, ///< 1 主路 Main road
|
||
AMapNaviFormWayInternalRoad, ///< 2 路口内部道路 Intersection internal roads
|
||
AMapNaviFormWayJCT, ///< 3 JCT道路 JCT roads
|
||
AMapNaviFormWayRoundabout, ///< 4 环岛 Roundabouts
|
||
AMapNaviFormWayRestArea, ///< 5 服务区 Service Area
|
||
AMapNaviFormWayRamp, ///< 6 匝道 Ramp
|
||
AMapNaviFormWaySideRoad, ///< 7 辅路 Frontage Road
|
||
AMapNaviFormWayRampAndJCT, ///< 8 匝道与JCT Ramp and JCT
|
||
AMapNaviFormWayExit, ///< 9 出口 Exit
|
||
AMapNaviFormWayEntrance, ///< 10 入口 Entrance
|
||
AMapNaviFormWayTurnRightRoadA, ///< 11 A类右转专用道 Class A Right-Turn Lane
|
||
AMapNaviFormWayTurnRightRoadB, ///< 12 B类右转专用道 Class B Right-Turn Lane
|
||
AMapNaviFormWayTurnLeftRoadA, ///< 13 A类左转专用道 Class A Left-Turn Lane
|
||
AMapNaviFormWayTurnLeftRoadB, ///< 14 B类左转专用道 Class B Left-Turn Lane
|
||
AMapNaviFormWayNormalRoad, ///< 15 普通道路 Ordinary Road
|
||
AMapNaviFormWayTurnLeftAndRightRoad, ///< 16 左右转专用道 Left and Right Turn Lane
|
||
AMapNaviFormWayRestAreaAndJCT = 53, ///< 53 服务区与JCT Service Area and JCT
|
||
AMapNaviFormWayRestAreaAndRamp = 56, ///< 56 服务区与匝道 Service Area and Ramp
|
||
AMapNaviFormWayRestAreaRampJCT = 58, ///< 58 服务区与匝道以及JCT Service Area, Ramp and JCT
|
||
};
|
||
|
||
///电子眼类型
|
||
///Types of electronic eyes
|
||
typedef NS_ENUM(NSInteger, AMapNaviCameraType)
|
||
{
|
||
AMapNaviCameraTypeSpeed = 0, //!< 0 测速摄像 Speed cameras
|
||
AMapNaviCameraTypeSurveillance = 1, //!< 1 监控摄像 Surveillance cameras
|
||
AMapNaviCameraTypeTrafficLight = 2, //!< 2 闯红灯拍照 Red light cameras
|
||
AMapNaviCameraTypeBreakRule = 3, //!< 3 违章拍照 Illegal parking cameras
|
||
AMapNaviCameraTypeBusway = 4, //!< 4 公交专用道摄像头 Bus lane cameras
|
||
AMapNaviCameraTypeEmergencyLane = 5, //!< 5 应急车道摄像头 Emergency lane cameras
|
||
AMapNaviCameraTypeBicycleLane = 6, //!< 6 非机动车道摄像头 Non-motor vehicle lane cameras
|
||
AMapNaviCameraTypeIntervalVelocityStart = 8, //!< 8 区间测速起始 Start of section speed measurement
|
||
AMapNaviCameraTypeIntervalVelocityEnd = 9, //!< 9 区间测速终止 End of section speed measurement
|
||
AMapNaviCameraTypeFlowSpeed = 10, //!< 10 流动测速电子眼 Mobile speed camera
|
||
AMapNaviCameraTypeETC = 11, //!< 11 ETC计费拍照 ETC toll photo capture since 9.0.0 新增
|
||
};
|
||
|
||
///播报模式
|
||
///Announcement mode
|
||
typedef NS_ENUM(NSInteger, AMapNaviBroadcastMode)
|
||
{
|
||
AMapNaviBroadcastModeConcise = 1, ///< 1 经典简洁播报(建议老司机使用) Classic concise announcement (recommended for experienced drivers)
|
||
AMapNaviBroadcastModeDetailed, ///< 2 新手详细播报 Detailed announcement for beginners
|
||
};
|
||
|
||
///道路状态。特别注意:10.0.0新增Default、FineOpen
|
||
///Road status. Special note: Version 10.0.0 adds Default and FineOpen
|
||
typedef NS_ENUM(NSInteger, AMapNaviRouteStatus)
|
||
{
|
||
AMapNaviRouteStatusUnknow = 0, ///< 0 未知状态 Unknown status
|
||
AMapNaviRouteStatusSmooth, ///< 1 通畅 Clear
|
||
AMapNaviRouteStatusSlow, ///< 2 缓行 Slow moving
|
||
AMapNaviRouteStatusJam, ///< 3 阻塞 Blocked
|
||
AMapNaviRouteStatusSeriousJam, ///< 4 严重阻塞 Severely blocked
|
||
AMapNaviRouteStatusDefault, ///< 5 默认路况(内部道路) Default traffic condition (internal road)
|
||
AMapNaviRouteStatusFineOpen, ///< 6 极其畅通 Extremely clear
|
||
};
|
||
|
||
///路径规划时POI点的起终点类型
|
||
///POI point type in route planning
|
||
typedef NS_ENUM(NSInteger, AMapNaviRoutePlanPOIType)
|
||
{
|
||
AMapNaviRoutePlanPOITypeStart = 0, ///< 0 起点 Start point
|
||
AMapNaviRoutePlanPOITypeEnd, ///< 1 终点 End point
|
||
AMapNaviRoutePlanPOITypeWay, ///< 2 途径点 Waypoint
|
||
};
|
||
|
||
///可切换到的主辅路类型 since 5.3.0
|
||
///Switchable main and auxiliary road types
|
||
typedef NS_ENUM(NSInteger, AMapNaviParallelRoadStatusFlag)
|
||
{
|
||
AMapNaviParallelRoadStatusFlagNone = 0, ///< 0 无主辅路可切换 No main or auxiliary road to switch
|
||
AMapNaviParallelRoadStatusFlagAssist = 1, ///< 1 可切换到辅路 Can switch to auxiliary road
|
||
AMapNaviParallelRoadStatusFlagMain = 2, ///< 2 可切换到主路 Can switch to main road
|
||
};
|
||
|
||
///可切换到的高架上下类型 since 6.6.0
|
||
///Can switch to the type of elevated road
|
||
typedef NS_ENUM(NSInteger, AMapNaviElevatedRoadStatusFlag)
|
||
{
|
||
AMapNaviElevatedRoadStatusFlagNone = 0, ///< 0 无高架可切换 No elevated road to switch
|
||
AMapNaviElevatedRoadStatusFlagUnder = 1, ///< 1 可切换到高架下 Can switch to under elevated road
|
||
AMapNaviElevatedRoadStatusFlagUp = 2, ///< 2 可切换到高架上 Can switch to on elevated road
|
||
};
|
||
|
||
///导航组件主题皮肤类型 since 5.4.0
|
||
///Navigation component theme skin type
|
||
typedef NS_ENUM(NSInteger, AMapNaviCompositeThemeType)
|
||
{
|
||
AMapNaviCompositeThemeTypeDefault = 0, ///< 0 蓝色系 Blue tones
|
||
AMapNaviCompositeThemeTypeLight = 1, ///< 1 浅色系 Light tones
|
||
AMapNaviCompositeThemeTypeDark = 2, ///< 2 暗色系 Dark tones
|
||
};
|
||
|
||
///导航过程中提示音的类型 since 5.4.0
|
||
///Types of prompts during navigation
|
||
typedef NS_ENUM(NSInteger, AMapNaviRingType)
|
||
{
|
||
AMapNaviRingTypeNULL = 0, ///< 0 无 None
|
||
AMapNaviRingTypeReroute = 1, ///< 1 偏航重算的提示音 Prompt sound for recalculating the route
|
||
AMapNaviRingTypeDing = 100, ///< 100 即将到达转向路口时的提示音 Prompt sound when approaching a turning intersection
|
||
AMapNaviRingTypeDong = 101, ///< 101 导航状态下通过测速电子眼的提示音 Prompt sound when passing a speed camera in navigation mode
|
||
AMapNaviRingTypeElecDing = 102, ///< 102 巡航状态下通过电子眼(所有类型)的提示音 Prompt sound when passing through electronic eyes (all types) in cruise mode
|
||
AMapNaviRingTypeElecOverSpeedDing = 103, ///< 103 巡航状态下电子眼播报点超速时的提示音 Prompt sound when exceeding the speed limit at electronic eye broadcast points in cruise mode
|
||
};
|
||
|
||
///卫星定位信号强度类型 since 7.8.0 卫星定位信号强度类型只在导航中才有效
|
||
///Satellite positioning signal strength type, Satellite positioning signal strength type is only effective during navigation
|
||
typedef NS_ENUM(NSInteger, AMapNaviGPSSignalStrength)
|
||
{
|
||
AMapNaviGPSSignalStrengthUnknow = 0, //0 信号强度未知 Signal strength unknown
|
||
AMapNaviGPSSignalStrengthStrong = 1, //1 信号强 Strong signal
|
||
AMapNaviGPSSignalStrengthWeak = 2, //2 信号弱 Weak signal
|
||
AMapNaviGPSSignalStrengthSmartPos = 3, //3 智能定位 Intelligent positioning since 7.8.0
|
||
};
|
||
|
||
///导航组件页面回退的动作类型 since 5.5.0
|
||
///Navigation component page back action type
|
||
typedef NS_ENUM(NSInteger, AMapNaviCompositeVCBackwardActionType)
|
||
{
|
||
AMapNaviCompositeVCBackwardActionTypeDismiss = 0, //0 退出了整个导航组件 Exited the entire navigation component
|
||
AMapNaviCompositeVCBackwardActionTypeNaviPop = 1, //1 退出了导航组件中的导航界面 Exited the navigation interface within the navigation component
|
||
};
|
||
|
||
///路径规划类型 since 5.5.0
|
||
///Route planning type
|
||
typedef NS_ENUM(NSInteger, AMapNaviRoutePlanType)
|
||
{
|
||
AMapNaviRoutePlanTypeCommon = 1, ///< 1 直接算路 Direct route calculation
|
||
AMapNaviRoutePlanTypeYaw = 2, ///< 2 偏航重算 Recalculation after deviation
|
||
AMapNaviRoutePlanTypeChangeStratege = 3, ///< 3 切换算路策略 Switching route calculation strategy
|
||
AMapNaviRoutePlanTypeParallelRoad = 4, ///< 4 平行路切换 Parallel road switching
|
||
AMapNaviRoutePlanTypeTMC = 5, ///< 5 躲避拥堵 Avoiding congestion
|
||
AMapNaviRoutePlanTypeLimitLine = 6, ///< 6 限行算路(车牌限行) Route calculation with traffic restrictions (license plate restrictions)
|
||
AMapNaviRoutePlanTypeDamagedRoad = 7, ///< 7 道路关闭 Road closure
|
||
AMapNaviRoutePlanTypeChangeJnyPnt = 9, ///< 9 停车场模式/沿途搜索设置行程点 Parking mode/Search for waypoints along the route
|
||
AMapNaviRoutePlanTypeUpdateCityData = 10, ///< 10 更新城市数据引起的重算 Recalculation caused by city data updates
|
||
AMapNaviRoutePlanTypeLimitForbid = 11, ///< 11 限时禁行引起的重算(在线) Recalculation due to temporary traffic restrictions (online)
|
||
AMapNaviRoutePlanTypeManualRefresh = 12, ///< 12 手动刷新 Manual refresh
|
||
AMapNaviRoutePlanTypeMutiRouteRequest = 14, ///< 14 导航中请求备选路线 Requesting alternative routes during navigation
|
||
AMapNaviRoutePlanTypeDispatch = 16, ///< 16 交警调度请求路线 Traffic police dispatch requesting routes
|
||
AMapNaviRoutePlanTypePushRouteData = 200, ///< 200 PushRouteData进行导航 Navigation via PushRouteData
|
||
};
|
||
|
||
///自车位置和区间测速电子眼路段的位置关系 since 6.0.0
|
||
///The positional relationship between the ego vehicle and the section speed enforcement camera zone
|
||
typedef NS_ENUM(NSInteger, AMapNaviIntervalCameraPositionState)
|
||
{
|
||
AMapNaviIntervalCameraPositionStateNULL = 0, ///< 0 无 None
|
||
AMapNaviIntervalCameraPositionStateReady = 1, ///< 1 即将进入区间测速路段(还未进入) About to enter the section speed enforcement zone (not yet entered)
|
||
AMapNaviIntervalCameraPositionStateIn = 2, ///< 2 在区间测速路段内 Within the section speed enforcement zone
|
||
AMapNaviIntervalCameraPositionStateOut = 3, ///< 3 已离开区间测速路段(包括:已经过了测速路段终点 和 中途从区间中离开了) Exited the section speed enforcement zone (including: passed the endpoint of the speed enforcement section and left midway from the zone)
|
||
};
|
||
|
||
///道路设施信息类型 since 6.0.0
|
||
///Road facility information type
|
||
typedef NS_ENUM(NSInteger, AMapNaviRoadFacilityType)
|
||
{
|
||
AMapNaviRoadFacilityTypeNULL = 0, ///< 0 无 None
|
||
AMapNaviRoadFacilityTypeLeftInterflow = 1, ///< 左侧合流 Merge left
|
||
AMapNaviRoadFacilityTypeRightInterflow = 2, ///< 右侧合流 Merge right
|
||
AMapNaviRoadFacilityTypeSharpTurn = 3, ///< 急转弯 Sharp turn
|
||
AMapNaviRoadFacilityTypeReverseTurn = 4, ///< 反向转弯 Reverse turn
|
||
AMapNaviRoadFacilityTypeLinkingTurn = 5, ///< 连续转弯 Continuous turn
|
||
AMapNaviRoadFacilityTypeAccidentArea = 6, ///< 事故多发地 Accident-prone area
|
||
AMapNaviRoadFacilityTypeFallingRocks = 7, ///< 注意落石 Beware of falling rocks
|
||
AMapNaviRoadFacilityTypeFailwayCross = 8, ///< 铁路道口 Railway crossing
|
||
AMapNaviRoadFacilityTypeSlippery = 9, ///< 易滑 Slippery
|
||
AMapNaviRoadFacilityTypeMaxSpeedLimit = 10, ///< 最大限速标志 Maximum speed limit sign
|
||
AMapNaviRoadFacilityTypeMinSpeedLimit = 11, ///< 最小限速标志 Minimum speed limit sign
|
||
AMapNaviRoadFacilityTypeVillage = 12, ///< 村庄 Village
|
||
AMapNaviRoadFacilityTypeLeftNarrow = 13, ///< 左侧变窄 Narrowing on the left
|
||
AMapNaviRoadFacilityTypeRightNarrow = 14, ///< 右侧变窄 Narrowing on the right
|
||
AMapNaviRoadFacilityTypeDoubleNarrow = 15, ///< 两侧变窄 Narrowing on both sides
|
||
AMapNaviRoadFacilityTypeCrosswindArea = 16, ///< 横风区 Crosswind area
|
||
AMapNaviRoadFacilityTypeTruckHeightLimit = 81, ///< 货车限高 Truck height limit
|
||
AMapNaviRoadFacilityTypeTruckWidthLimit = 82, ///< 货车限宽 Truck width limit
|
||
AMapNaviRoadFacilityTypeTruckWeightLimit = 83, ///< 货车限重 Truck weight limit
|
||
AMapNaviRoadFacilityTypeCheckPoint = 91, ///< 货车检查站 Truck inspection station
|
||
};
|
||
|
||
///导航过程中关于路线的‘通知信息’的类型 since 6.2.0
|
||
///Type of 'notification information' about the route during navigation
|
||
typedef NS_ENUM(NSInteger, AMapNaviRouteNotifyDataType)
|
||
{
|
||
AMapNaviRouteNotifyDataTypeNULL = 0, ///< 0 无效 Invalid
|
||
AMapNaviRouteNotifyDataTypeRestrictArea = 1, ///< 1 限行区域通知 Restricted area notification
|
||
AMapNaviRouteNotifyDataTypeForbidArea = 2, ///< 2 禁行区域通知 No-entry zone notification
|
||
AMapNaviRouteNotifyDataTypeRoadClosedArea = 3, ///< 3 道路关闭通知 Road closure notification
|
||
AMapNaviRouteNotifyDataTypeJamArea = 4, ///< 4 拥堵区域通知 Congestion area notification
|
||
AMapNaviRouteNotifyDataTypeDispatch = 5, ///< 5 交警路线调度通知 Traffic police route dispatch notification
|
||
AMapNaviRouteNotifyDataTypeChangeMainRoute = 20, ///< 20 备选路线切换为主路线的结果通知 Alternate route switched to main route notification
|
||
AMapNaviRouteNotifyDataTypeGPSSignalWeak = 21, ///< 21 手机卫星定位信号弱的通知 Notification of Weak Satellite Positioning Signal on Mobile Phone
|
||
};
|
||
|
||
///AMapNaviLink的LinkType类型 since 6.3.0
|
||
///AMapNaviLink's LinkType type
|
||
typedef NS_ENUM(NSInteger, AMapNaviLinkType)
|
||
{
|
||
AMapNaviLinkTypeNull = -1, ///< 无效 Invalid
|
||
AMapNaviLinkTypeNormalRoad = 0, ///< 普通道路 Ordinary road
|
||
AMapNaviLinkTypeFairway = 1, ///< 航道 Waterway
|
||
AMapNaviLinkTypeUnderPass = 2, ///< 隧道 Tunnel
|
||
AMapNaviLinkTypeBridge = 3, ///< 桥梁 Bridge
|
||
AMapNaviLinkTypeElevatedRd = 4, ///< 高架路 Elevated road
|
||
};
|
||
|
||
///路径的扎点信息类型 since 6.3.0
|
||
///Path's anchor point information type
|
||
typedef NS_ENUM(NSInteger, AMapNaviRouteIconPointType)
|
||
{
|
||
AMapNaviRouteIconPointTypeNULL = -1, ///< 无效类型 Invalid type
|
||
AMapNaviRouteIconPointTypeFoot = 0, ///< 步行扎点 Walking anchor point
|
||
AMapNaviRouteIconPointTypeVehicleFerry = 1, ///< 汽车轮渡 Car ferry
|
||
AMapNaviRouteIconPointTypeMannedFerry = 2, ///< 载人轮渡 Passenger ferry
|
||
};
|
||
|
||
///驾车导航网约车模式 since 6.4.0
|
||
///Driving navigation ride-hailing mode
|
||
typedef NS_ENUM(NSInteger, AMapNaviOnlineCarHailingType)
|
||
{
|
||
AMapNaviOnlineCarHailingTypeInvalid = -1, ///< 无效类型 Invalid type
|
||
AMapNaviOnlineCarHailingTypeNone = 0, ///< 非网约车模式, 即正常的默认模式 Non-ride-hailing mode, i.e. the normal default mode
|
||
AMapNaviOnlineCarHailingTypePickUp = 1, ///< 网约车接驾模式 Ride-hailing pick-up mode
|
||
AMapNaviOnlineCarHailingTypeTransport = 2, ///< 网约车送驾模式 Ride-hailing drop-off mode
|
||
};
|
||
|
||
///导航界面中的地图样式类型 since 6.7.0
|
||
///Map style type in the navigation interface
|
||
typedef NS_ENUM(NSInteger, AMapNaviViewMapModeType)
|
||
{
|
||
AMapNaviViewMapModeTypeDay = 0, ///< 白天模式 Day mode
|
||
AMapNaviViewMapModeTypeNight = 1, ///< 黑夜模式 Night mode
|
||
AMapNaviViewMapModeTypeDayNightAuto = 2, ///< 根据日出日落时间自动切换白天黑夜 Automatically switch between day and night based on sunrise and sunset times
|
||
AMapNaviViewMapModeTypeCustom = 3, ///< 自定义地图样式 (还需传入 MAMapCustomStyleOptions ) Custom map style (MAMapCustomStyleOptions also needs to be passed)
|
||
};
|
||
|
||
///导航组件中的语音播报类型 since 7.1.0
|
||
///Voice broadcast type in the navigation component
|
||
typedef NS_OPTIONS(NSUInteger, AMapNaviCompositeBroadcastType) {
|
||
AMapNaviCompositeBroadcastDetailed = 0, ///< 详细播报 Detailed broadcast
|
||
AMapNaviCompositeBroadcastConcise = 1, ///< 简洁播报 Concise broadcast
|
||
AMapNaviCompositeBroadcastMute = 2, ///< 静音 Mute
|
||
};
|
||
|
||
///驾驶三急事件枚举类型 since 9.3.5
|
||
///Enumeration types of three urgent driving events
|
||
typedef NS_ENUM(NSUInteger, AMapNaviDriveEventType) {
|
||
AMapNaviDriveEventNone = 0, ///< 详细播报 Detailed broadcast
|
||
AMapNaviDriveEventLeftTurn = 1, ///< 急转弯-左转 Sharp turn - left turn
|
||
AMapNaviDriveEventRightTurn = 2, ///< 急转弯-右转 Sharp turn - right turn
|
||
AMapNaviDriveEventLeftLaneChange = 3, ///< 急超车-左转 Urgent overtaking - left turn
|
||
AMapNaviDriveEventRightLaneChange = 4, ///< 急超车-右转 Urgent overtaking - right turn
|
||
AMapNaviDriveEventAccelerate = 5, ///< 急加速 Sudden acceleration
|
||
AMapNaviDriveEventBreak = 6 ///<急减速 Sudden deceleration
|
||
};
|
||
|
||
typedef NS_ENUM(NSInteger, AMapNaviOwnershipType)
|
||
{
|
||
AMapNaviOwnershipPublicRoad = 0, ///< 公共道路 Public roads
|
||
AMapNaviOwnershipInternalRoad = 1, ///< 内部道路 Internal roads
|
||
AMapNaviOwnershipPrivateRoad = 2, ///< 私有道路 Private roads
|
||
AMapNaviOwnershipUndergroundParkRoad = 3, ///< 地下停车场道路 Underground parking lot roads
|
||
AMapNaviOwnership3DParkRoad = 4 ///< 立体停车场道路 Multi-story parking lot roads
|
||
};
|
||
|
||
///导航类型 since 10.0.900
|
||
///Navigation type
|
||
typedef NS_ENUM(NSInteger, AMapNaviType)
|
||
{
|
||
AMapNaviTypeInvalid = 0, //!< 无效值 Invalid value
|
||
AMapNaviTypeDrive = 1, //!< 驾车 Driving
|
||
AMapNaviTypeRide = 2, //!< 骑行(自行车) Cycling (Bicycle)
|
||
AMapNaviTypeWalk = 3, //!< 步行 Walking
|
||
AMapNaviTypeEleBike = 4, //!< 骑行(电动车) Cycling (Electric Vehicle)
|
||
};
|
||
|
||
typedef NS_ENUM(NSInteger, AMapNaviAppLangType)
|
||
{
|
||
AMapNaviAppLangZhHans = 0, ///< 中文简体 Simplified Chinese
|
||
AMapNaviAppLangZhHantHK = 1, ///< 中文繁体-香港 Traditional Chinese - Hong Kong
|
||
AMapNaviAppLangZhHantTW = 2, ///< 中文繁体-台湾 Traditional Chinese - Taiwan
|
||
};
|
||
|
||
typedef NS_OPTIONS(uint64_t, AMapNaviALCLogLevel) {
|
||
AMapNaviALCLogLevelDebug = 1ULL << 3,
|
||
AMapNaviALCLogLevelInfo = 1ULL << 4,
|
||
AMapNaviALCLogLevelWarning = 1ULL << 5,
|
||
AMapNaviALCLogLevelError = 1ULL << 6,
|
||
AMapNaviALCLogLevelFatal = 1ULL << 7,
|
||
AMapNaviALCLogLevelPerformance = 1ULL << 8,
|
||
AMapNaviALCLogLevelTracing = 1ULL << 9,
|
||
AMapNaviALCLogLevelPrismTracing = 1ULL << 10,
|
||
AMapNaviALCLogLevelHeader = 1ULL << 11,
|
||
AMapNaviALCLogLevelAll = AMapNaviALCLogLevelDebug
|
||
| AMapNaviALCLogLevelInfo
|
||
| AMapNaviALCLogLevelWarning
|
||
| AMapNaviALCLogLevelError
|
||
| AMapNaviALCLogLevelFatal
|
||
| AMapNaviALCLogLevelPerformance
|
||
| AMapNaviALCLogLevelTracing
|
||
| AMapNaviALCLogLevelPrismTracing
|
||
| AMapNaviALCLogLevelHeader,
|
||
};
|
||
|
||
///全链路日志 Full link log
|
||
typedef void (^AMapNaviFullLinkLogBlock)(NSString * _Nullable info);
|
||
|
||
/// 导航中路线上各种点是否显示的状态枚举
|
||
/// Enumeration of the display status of various points on the navigation route
|
||
typedef NS_OPTIONS(NSUInteger, AMapNaviRouteAnnoState) {
|
||
AMapNaviRouteRouteStateNone = 0 << 0, //为0的时候什么都不显示 When 0, nothing is displayed
|
||
AMapNaviRouteStartEndViaAnnoState = 1 << 1, //第二位为true的时候显示起终点和途径点 When the second digit is true, display the start, end, and waypoints
|
||
AMapNaviRouteFootFerryAnnoState = 1 << 2, //第三位为true的时候显示轮渡点 When the third digit is true, display ferry points
|
||
AMapNaviRouteNotAvoidAndTrafficAnnoState = 1 << 3, //第四位为true的时候显示禁限行和封路 When the fourth digit is true, display traffic restrictions and road closures
|
||
AMapNaviRouteRealStartVisibleState = 1 << 4, //第五位为true的时候显示起点扎点圆形Icon When the fifth digit is true, display the starting point dot circular icon
|
||
AMapNaviRouteRealEndVisibleState = 1 << 5, //第六位为true的时候显示终点扎点圆形Icon Display the destination pin circle icon when the sixth digit is true
|
||
AMapNaviRouteAnnoStateAll = (AMapNaviRouteStartEndViaAnnoState | AMapNaviRouteFootFerryAnnoState | AMapNaviRouteNotAvoidAndTrafficAnnoState | AMapNaviRouteRealStartVisibleState | AMapNaviRouteRealEndVisibleState), //全部显示 Show All
|
||
};
|
||
|
||
|
||
///上下坡类型 Upstream and downhill types
|
||
typedef NS_OPTIONS(NSUInteger, AMapNaviSlopeType) {
|
||
AMapNaviSlopeTypeUp = 1 << 0, // 上坡 Uphill
|
||
AMapNaviSlopeTypeDown = 1 << 1 // 下坡 downhill
|
||
};
|
||
|
||
//算路调用来源 Route calculation invocation source
|
||
typedef NS_ENUM(NSUInteger, AMapNaviInvokerType) {
|
||
AMapNaviInvokerTypeNavi,
|
||
AMapNaviInvokerTypePlan,
|
||
};
|
||
|
||
|
||
#pragma mark - LaneInfo Image
|
||
|
||
/**
|
||
* @brief 创建车道信息图片
|
||
* Create lane information image
|
||
* @param laneBackInfo 车道背景信息
|
||
* Lane background information
|
||
* @param laneSelectInfo 车道选择信息
|
||
* Lane selection information
|
||
* @return 车道信息图片
|
||
* Lane information image
|
||
*/
|
||
FOUNDATION_EXTERN UIImage *CreateLaneInfoImageWithLaneInfo(NSString *laneBackInfo, NSString *laneSelectInfo);
|
||
|
||
/**
|
||
* @brief 将驾车路线规划的偏好设置转换为驾车路径规划策略.注意:当prioritiseHighway为YES时,将忽略avoidHighway和avoidCost的设置
|
||
* Convert the preference settings for driving route planning into driving route planning strategies. Note: When prioritiseHighway is YES, the settings for avoidHighway and avoidCost will be ignored.
|
||
* @param multipleRoute 是否多路径规划
|
||
* Whether multi-route planning
|
||
* @param avoidCongestion 是否躲避拥堵
|
||
* Whether to avoid congestion
|
||
* @param avoidHighway 是否不走高速
|
||
* Whether to avoid highways
|
||
* @param avoidCost 是否避免收费
|
||
* Whether to avoid tolls
|
||
* @param prioritiseHighway 是否高速优先
|
||
* Whether to prioritize highways
|
||
* @return AMapNaviDrivingStrategy路径规划策略
|
||
* AMapNaviDrivingStrategy Route Planning Strategy
|
||
*/
|
||
FOUNDATION_EXTERN AMapNaviDrivingStrategy ConvertDrivingPreferenceToDrivingStrategy(BOOL multipleRoute,
|
||
BOOL avoidCongestion,
|
||
BOOL avoidHighway,
|
||
BOOL avoidCost,
|
||
BOOL prioritiseHighway);
|
||
|
||
#pragma mark - AMapNaviPoint
|
||
|
||
@interface AMapNaviPoint : NSObject<NSCopying,NSCoding>
|
||
|
||
///纬度
|
||
///Latitude
|
||
@property (nonatomic, assign) CGFloat latitude;
|
||
|
||
///经度
|
||
///Longitude
|
||
@property (nonatomic, assign) CGFloat longitude;
|
||
|
||
/**
|
||
* @brief AMapNaviPoint类对象的初始化函数
|
||
* Initialization function of AMapNaviPoint class object
|
||
* @param lat 纬度
|
||
* Latitude
|
||
* @param lon 经度
|
||
* Longitude
|
||
* @return AMapNaviPoint类对象id
|
||
* ID of AMapNaviPoint class object
|
||
*/
|
||
+ (AMapNaviPoint *)locationWithLatitude:(CGFloat)lat longitude:(CGFloat)lon;
|
||
|
||
/**
|
||
* @brief 判断点是否与当前点相同
|
||
* Determine if a point is the same as the current point
|
||
* @param aPoint 需要判断的点
|
||
* Point to be judged
|
||
* @return 两个点是否相同
|
||
* Whether two points are the same
|
||
*/
|
||
- (BOOL)isEqualToNaviPoint:(AMapNaviPoint *)aPoint;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviPointBounds
|
||
|
||
@interface AMapNaviPointBounds : NSObject<NSCopying,NSCoding>
|
||
|
||
///东北角坐标 Northeast corner coordinates
|
||
@property (nonatomic, strong) AMapNaviPoint *northEast;
|
||
|
||
///西南角坐标 Southwest corner coordinates
|
||
@property (nonatomic, strong) AMapNaviPoint *southWest;
|
||
|
||
/**
|
||
* @brief AMapNaviPointBounds类对象的初始化函数
|
||
* Initialization function of AMapNaviPointBounds class object
|
||
* @param northEast 东北角经纬度
|
||
* Northeast corner latitude and longitude
|
||
* @param southWest 西南角经纬度
|
||
* Southwest corner latitude and longitude
|
||
* @return AMapNaviPointBounds类对象id
|
||
* AMapNaviPointBounds class object id
|
||
*/
|
||
+ (AMapNaviPointBounds *)pointBoundsWithNorthEast:(AMapNaviPoint *)northEast southWest:(AMapNaviPoint *)southWest;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviGuide
|
||
|
||
///导航段信息类 Navigation segment information class
|
||
@interface AMapNaviGuide : NSObject<NSCopying,NSCoding>
|
||
|
||
///导航段名称 Navigation segment name
|
||
@property (nonatomic, strong) NSString *name;
|
||
|
||
///导航段长度 Navigation segment length
|
||
@property (nonatomic, assign) NSInteger length;
|
||
|
||
///导航段时间 Navigation segment time
|
||
@property (nonatomic, assign) NSInteger time;
|
||
|
||
///导航段转向类型 Navigation segment turning type
|
||
@property (nonatomic, assign) AMapNaviIconType iconType;
|
||
|
||
///导航段路口点的坐标 Navigation segment intersection point coordinates
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviGroupSegment
|
||
|
||
///聚合段信息类 Aggregation segment information class since 5.1.0
|
||
@interface AMapNaviGroupSegment : NSObject<NSCopying>
|
||
|
||
///聚合段名称 Aggregation segment name
|
||
@property (nonatomic, strong) NSString *groupName;
|
||
|
||
///聚合段长度,单位:米 Aggregation segment length, unit: meters
|
||
@property (nonatomic, assign) NSInteger distance;
|
||
|
||
///聚合段收费金额,单位:元 Aggregated segment toll amount, unit: yuan
|
||
@property (nonatomic, assign) NSInteger toll;
|
||
|
||
///聚合段包含的起始导航段下标 Starting navigation segment index included in the aggregated segment
|
||
@property (nonatomic, assign) NSInteger startSegmentID;
|
||
|
||
///聚合段包含导航段个数 Number of navigation segments included in the aggregated segment
|
||
@property (nonatomic, assign) NSInteger segmentCount;
|
||
|
||
///聚合段是否到达途径点 Whether the aggregated segment reaches a waypoint
|
||
@property (nonatomic, assign) BOOL isArriveWayPoint;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviTrafficStatus
|
||
|
||
///前方交通路况信息类 Traffic condition information class ahead
|
||
@interface AMapNaviTrafficStatus : NSObject<NSCopying>
|
||
|
||
///道路状态 Road status
|
||
@property (nonatomic, assign) AMapNaviRouteStatus status;
|
||
|
||
/*
|
||
带有深绿路况新的表达方式的交通状态
|
||
Traffic status with new expression of dark green road conditions
|
||
畅通状态: 100--200; 而不在 [110,140)深绿、 [160,190)绿内,则路况状态默认为 “畅通”(绿色)
|
||
Smooth status: 100--200; If not within [110,140) dark green or [160,190) green, the road condition defaults to "smooth" (green)
|
||
缓行状态: 200--300; 而不在 [210,290)内, 则路况状态默认为 “缓行”(黄色)
|
||
Slow traffic status: 200--300; if not within [210, 290), the traffic status defaults to "slow" (yellow)
|
||
拥堵状态: 300--400; 而不在 [310,340)拥堵、 [360,390)极度拥堵内,则路况状态默认为“拥堵”(红色)
|
||
Congestion status: 300--400; if not within [310, 340) congestion or [360, 390) severe congestion, the traffic status defaults to 'congested' (red)
|
||
无交通流: 900--999; 路况全部为“无交通流”
|
||
No traffic flow: 900--999; all traffic conditions are "no traffic flow"
|
||
在以上区间之外的,包括0 以及所有其他无效值,均按照“未知”处理。
|
||
Values outside the above range, including 0 and all other invalid values, will be treated as 'unknown'
|
||
特别注意:当前接口为收费接口,您如果申请试用或者正式应用都请通过工单系统提交商务合作类工单进行沟通 https://lbs.amap.com/ since 9.6.0
|
||
Special note: This is a paid API. If you wish to apply for a trial or formal usage, please submit a business cooperation ticket via the ticket system for communication. https://lbs.amap.com/ since 9.6.0
|
||
*/
|
||
@property (nonatomic, assign) NSInteger trafficFineStatus;
|
||
|
||
///该交通状态的路段长度
|
||
///The length of the road section in this traffic state
|
||
@property (nonatomic, assign) NSInteger length;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviIntervalCameraDynamicInfo
|
||
|
||
///区间测速电子眼的动态信息 since 6.0.0
|
||
///Dynamic information of the section speed camera
|
||
@interface AMapNaviIntervalCameraDynamicInfo : NSObject <NSCopying>
|
||
|
||
///区间测速路段的总长度
|
||
///The total length of the section speed section
|
||
@property (nonatomic, assign) NSInteger length;
|
||
|
||
///进入区间测速路段后实时的区间路段剩余长度
|
||
///The remaining length of the section speed section in real time after entering the section speed section
|
||
@property (nonatomic, assign) NSInteger remainDistance;
|
||
|
||
///进入区间测速路段后的实时平均车速
|
||
///The real-time average speed after entering the section speed section
|
||
@property (nonatomic, assign) NSInteger averageSpeed;
|
||
|
||
///进入区间测速路段后的剩余路段的合理车速
|
||
///Reasonable speed for the remaining section after entering the interval speed measurement section
|
||
@property (nonatomic, assign) NSInteger reasonableSpeedInRemainDist;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviCameraInfo
|
||
|
||
///电子眼信息类 Electronic eye information category
|
||
@interface AMapNaviCameraInfo : NSObject <NSCopying>
|
||
|
||
///电子眼类型 Electronic eye type
|
||
@property (nonatomic, assign) AMapNaviCameraType cameraType;
|
||
|
||
///电子眼限速,0表示没有限速, 实际速度表示道路的限速值,单位km/h. 注意:-2表示没有采集到限速数据,-1表示该车道禁行 且只有在cameraType 为AMapNaviCameraTypeIntervalVelocityStart 和AMapNaviCameraTypeIntervalVelocityEnd 的时候生效.
|
||
///The speed limit of the electronic eye, 0 indicates no speed limit, the actual speed indicates the speed limit of the road, unit km/h. Note: -2 indicates that no speed limit data was collected, -1 indicates that the lane is prohibited and only takes effect when cameraType is AMapNaviCameraTypeIntervalVelocityStart and AMapNaviCameraTypeIntervalVelocityEnd.
|
||
@property (nonatomic, assign) NSInteger cameraSpeed;
|
||
|
||
///电子眼经纬度 Electronic eye latitude and longitude
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///到电子眼的距离,-1表示没有剩余距离信息。
|
||
///Distance to the electronic eye, -1 indicates no remaining distance information
|
||
@property (nonatomic, assign) NSInteger distance;
|
||
|
||
///区间测速电子眼的动态信息. 注意:只有在导航的过程中且 cameraType 为 AMapNaviCameraTypeIntervalVelocityEnd 的时候才有. since 6.0.0
|
||
///Dynamic information of interval speed measurement cameras. Note: Only available during navigation when cameraType is AMapNaviCameraTypeIntervalVelocityEnd
|
||
@property (nonatomic, strong) AMapNaviIntervalCameraDynamicInfo *intervalCameraDynamicInfo;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviServiceAreaInfo
|
||
|
||
|
||
///服务区域信息 Service area information since 5.0.0
|
||
@interface AMapNaviServiceAreaInfo : NSObject <NSCopying>
|
||
|
||
/// 服务区的poiId POI ID of the service area @since 10.1.0
|
||
@property (nonatomic, copy) NSString *poiId;
|
||
|
||
///到服务区域的预估剩余时间 单位:秒 Estimated remaining time to service area (unit: seconds) @since 10.1.0
|
||
@property (nonatomic, assign) NSUInteger remainTime;
|
||
|
||
///到服务区域的距离
|
||
///Distance to service area
|
||
@property (nonatomic, assign) NSInteger remainDistance;
|
||
|
||
///服务区域类型(0服务区,1收费站,2检查站)
|
||
///Service area type (0 service area, 1 toll station, 2 checkpoint)
|
||
@property (nonatomic, assign) NSInteger type;
|
||
|
||
///服务区域名称 Service area name
|
||
@property (nonatomic, strong) NSString *name;
|
||
|
||
///服务区域经纬度 Service area coordinates
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///服务区详细信息:按位标识(0-没有,1-有),第0~5位分别表示加油站,餐饮,卫生间,汽修,购物,住宿. since 8.0.0
|
||
///Service area details: bitwise flag (0-no, 1-yes), Positions 0~5 represent gas station, dining, restroom, auto repair, shopping, and accommodation respectively.
|
||
@property (nonatomic, assign) NSUInteger sapaDetail;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviCruiseInfo
|
||
|
||
///巡航模式信息类 Cruise mode information
|
||
@interface AMapNaviCruiseInfo : NSObject
|
||
|
||
///连续启用时间(单位:秒) Continuous activation time (unit: seconds)
|
||
@property (nonatomic, assign) NSInteger cruisingDriveTime;
|
||
|
||
///连续行驶距离(单位:米) Continuous driving distance (unit: meters)
|
||
@property (nonatomic, assign) NSInteger cruisingDriveDistance;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviTrafficFacilityInfo
|
||
|
||
/**
|
||
* 道路设施类型 Road facility types
|
||
* 0:未知道路设施 Unknown road facilities
|
||
* 4:测速拍照 Speed camera
|
||
* 5:违章拍照 Traffic violation camera
|
||
* 12:铁路道口 Railway crossing
|
||
* 13:左侧落石 Falling rocks on the left
|
||
* 14:事故易发地段 Accident-prone area
|
||
* 15:路段易滑 Slippery road section
|
||
* 16:村庄 Village
|
||
* 18:学校 School
|
||
* 19:有人看管的铁路道口 Manned railway crossing
|
||
* 20:无人看管的铁路道口 Unmanned railway crossing
|
||
* 21:道路两侧变窄 Road narrows on both sides
|
||
* 22:向左急弯路 Sharp left curve
|
||
* 23:向右急弯路 Sharp right curve
|
||
* 24:反向弯路 Reverse curve
|
||
* 25:连续弯路 Continuous curves
|
||
* 26:左侧车辆交汇处 Left-side vehicle merging
|
||
* 27:右侧车辆交汇处 Right-side vehicle merging
|
||
* 28:监控摄像 Surveillance camera
|
||
* 29:公交专用道拍照 Bus lane camera
|
||
* 31:禁止超车 No overtaking
|
||
* 36:右侧变窄 Right side narrows
|
||
* 37:左侧变窄 Left side narrows
|
||
* 38:窄桥 Narrow bridge
|
||
* 39:左右绕行 Detour left or right
|
||
* 40:左侧绕行 Detour left
|
||
* 41:右侧绕行 Detour right
|
||
* 42:右侧落石 Rockfall on the right
|
||
* 43:左侧靠山险路 Dangerous mountain road on the left
|
||
* 44:右侧靠山险路 Dangerous mountain road on the right
|
||
* 47:上陡坡 Steep ascent
|
||
* 48:下陡坡 Steep descent
|
||
* 49:过水路面 Water crossing
|
||
* 50:路面不平 Uneven road surface
|
||
* 52:慢行 Slow down
|
||
* 53:事故多发,注意危险 Accident-prone area, be cautious of danger
|
||
* 54:横风区 Crosswind area
|
||
* 58:隧道 Tunnel
|
||
* 59:渡口 Ferry
|
||
* 92:闯红灯拍照 Red light camera
|
||
* 93:应急车道拍照 Emergency lane camera
|
||
* 94:非机动车道拍照 Non-motorized lane camera
|
||
* 100:违章高发地 High-frequency violation area
|
||
*/
|
||
|
||
///道路交通设施类 Road traffic facilities
|
||
@interface AMapNaviTrafficFacilityInfo : NSObject
|
||
|
||
///经纬度 Latitude and longitude
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///类型,请参考 “道路设施类型” 的注释
|
||
///Type, please refer to the notes of 'Road Facility Types'
|
||
@property (nonatomic, assign) NSInteger boardcastType;
|
||
|
||
///距离设施的剩余距离(单位:米)
|
||
///Remaining distance to the facility (unit: meters)
|
||
@property (nonatomic, assign) NSInteger distance;
|
||
|
||
///限速值(单位:公里/小时)
|
||
///Speed limit (unit: km/h)
|
||
@property (nonatomic, assign) NSInteger limitSpeed;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviCruiseLinkStatus
|
||
|
||
///巡航拥堵状态下Link的形状点信息 since 6.7.0
|
||
///Shape point information of the link under cruising congestion
|
||
@interface AMapNaviCruiseLinkStatus : NSObject
|
||
|
||
///拥堵形状点
|
||
///Congestion shape point
|
||
@property (nonatomic, strong) NSArray <AMapNaviPoint *>*shapePoints;
|
||
|
||
///拥堵状态
|
||
///Congestion status
|
||
@property (nonatomic, assign) AMapNaviRouteStatus status;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviCruiseCongestionInfo
|
||
|
||
///巡航中拥堵区域信息 since 6.7.0
|
||
///Cruising congestion area information
|
||
@interface AMapNaviCruiseCongestionInfo : NSObject
|
||
|
||
///拥堵区域道路名
|
||
///Road name in congested area
|
||
@property (nonatomic, copy) NSString *roadName;
|
||
|
||
///整体拥堵状态
|
||
///Overall congestion status
|
||
@property (nonatomic, assign) AMapNaviRouteStatus congestionStatus;
|
||
|
||
///预估到达时间 (单位:秒)
|
||
///Estimated time of arrival (unit: seconds)
|
||
@property (nonatomic, assign) NSInteger etaTime;
|
||
|
||
///拥堵长度(单位:米)
|
||
///Congestion length (unit: meters)
|
||
@property (nonatomic, assign) NSInteger length;
|
||
|
||
///拥堵区域的状态描述对象
|
||
///Status description object of congested area
|
||
@property (nonatomic, strong) AMapNaviCruiseLinkStatus *pLinkData __attribute__((deprecated("This field has been deprecated, use linkDataArr instead, since 10.1.302")));
|
||
|
||
///link数组个数
|
||
///Number of link arrays
|
||
@property (nonatomic, assign) NSInteger linkCnt __attribute__((deprecated("This field is deprecated, please use linkDataArr since 10.0.820")));
|
||
|
||
//拥堵区域的状态描述数组
|
||
///Status description array of congested areas
|
||
///拥堵区域的状态描述对象 10.0.820
|
||
///Status description object of congestion area 10.0.820
|
||
@property (nonatomic, strong) NSArray<AMapNaviCruiseLinkStatus*> *linkDataArr ;
|
||
|
||
///事件类型,已废弃,since 7.0.0 .
|
||
///Event type (deprecated, since 7.0.0)
|
||
@property (nonatomic, assign) NSInteger eventType __attribute__((deprecated("This field is deprecated, since 7.0.0")));
|
||
|
||
///事件经纬度,已废弃,since 7.0.0 .
|
||
///Event coordinates (deprecated, since 7.0.0)
|
||
@property (nonatomic, strong) AMapNaviPoint *eventPos __attribute__((deprecated("This field is deprecated, since 7.0.0")));
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviRouteLabel
|
||
|
||
///道路标签信息 since 5.0.0
|
||
///Road label information
|
||
@interface AMapNaviRouteLabel : NSObject <NSCopying>
|
||
|
||
///标签类型
|
||
///Label type
|
||
@property (nonatomic, assign) NSInteger type;
|
||
|
||
///标签内容
|
||
///Label content
|
||
@property (nonatomic, strong) NSString *content;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviRestrictionInfo
|
||
|
||
///路径限行信息 since 5.0.0
|
||
///Route restriction information
|
||
@interface AMapNaviRestrictionInfo : NSObject <NSCopying>
|
||
|
||
///-1:无效值; 0:外地车限行,建议设置车牌; 1:外地车限行,建议开启限行; 2:已避开限行区域; 3:起点在限行区域内; 4:终点在限行区域内; 5:途经点在限行区域内; 6:途经限行区域; 7:已提前避开即将生效的限行区域; 8:路线上目前有限行, 但根据估算时间,行驶到该限行区域时,限行已失效.
|
||
///-1:Invalid value; 0:Non-local vehicle restriction, suggest setting license plate; 1:Non-local vehicle restriction, suggest enabling restriction; 2:Already avoided restricted area; 3:Starting point is within restricted area; 4:Destination is within restricted area; 5: Waypoint is within restricted area; 6: Passing through restricted area; 7: Already avoided upcoming restricted area in advance; 8: Currently there is a restriction on the route, but according to estimated time, the restriction will be expired when arriving at the restricted area.
|
||
@property (nonatomic, assign) NSInteger titleType;
|
||
|
||
///标题
|
||
///Title
|
||
@property (nonatomic, strong) NSString *title;
|
||
|
||
///tips描述,titleType为0或1时才有描述
|
||
///Tips description, only available when titleType is 0 or 1
|
||
@property (nonatomic, strong) NSString *tips;
|
||
|
||
///城市代码
|
||
///City code
|
||
@property (nonatomic, assign) NSInteger cityCode;
|
||
|
||
///描述 该字段已废弃,since 6.0.0
|
||
///Description This field is deprecated
|
||
@property (nonatomic, strong) NSString *desc __attribute__((deprecated("This field is deprecated, since 6.0.0")));
|
||
|
||
///该字段已废弃,请使用 titleType . since 6.0.0
|
||
///This field is deprecated, please use titleType
|
||
@property (nonatomic, assign) NSInteger type __attribute__((deprecated("This field is deprecated, please use titleType. since 6.0.0"))) ;
|
||
|
||
///限行规则的id列表 since 10.2.0
|
||
///ID List of Traffic Restrictions since 10.2.0
|
||
@property (nonatomic, strong) NSArray <NSNumber *> *ruleIDs;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviParallelRoadStatus
|
||
|
||
///平行路状态信息 since 5.3.0
|
||
///Parallel road status information
|
||
@interface AMapNaviParallelRoadStatus : NSObject
|
||
|
||
///主辅路标识(存在主辅路时,可切换到的主辅路类型)
|
||
///Main and auxiliary road signs (when main and auxiliary roads exist, switchable main and auxiliary road types)
|
||
@property (nonatomic, assign) AMapNaviParallelRoadStatusFlag flag;
|
||
|
||
///高架上下标识(存在高架时,可切换到的高架上下类型) since 6.6.0
|
||
///Elevated road signs (when elevated roads exist, switchable elevated road types)
|
||
@property (nonatomic, assign) AMapNaviElevatedRoadStatusFlag hwFlag;
|
||
|
||
///道路切换状态;
|
||
///Road switching status
|
||
@property (nonatomic, assign) NSInteger status __attribute__((deprecated("This field is deprecated, since 7.0.0")));
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviVehicleInfo
|
||
|
||
///车辆信息 since 6.0.0
|
||
///Vehicle information
|
||
@interface AMapNaviVehicleInfo : NSObject <NSCopying,NSCoding>
|
||
|
||
///车牌号,如"京H1N11", since 8.0.0 支持摩托车车牌号.
|
||
///License plate number, e.g. "京H1N11", since 8.0.0 supports motorcycle license plate numbers
|
||
@property (nonatomic, strong) NSString *vehicleId;
|
||
|
||
///是否开启ETA请求的躲避车辆限行, 默认为YES. 注意:只有设置为YES, 且设置了车牌号才能躲避车辆限行
|
||
///Whether to enable ETA request to avoid vehicle restrictions, default is YES. Note: Only when set to YES and the license plate number is set can vehicle restrictions be avoided.
|
||
@property (nonatomic, assign) BOOL isETARestriction;
|
||
|
||
///设置车辆类型, 0:燃油客车; 1:燃油货车; 2:纯电动客车; 3:纯电动货车; 4:插电式混动客车; 5:插电式混动货车; since 8.0.0 新增11:摩托车. 默认0(小车). 注意:只有设置了货车, 其他关于货车的属性设置才会生效
|
||
///Set vehicle type, 0: Fuel bus; 1: Fuel truck; 2: Pure electric bus; 3: Pure electric truck; 4: Plug-in hybrid bus; 5: Plug-in hybrid truck; since 8.0.0, added 11: Motorcycle. Default 0 (Car). Note: Only when the truck is set, other truck-related attribute settings will take effect.
|
||
@property (nonatomic, assign) NSInteger type;
|
||
|
||
///算路时是否忽略货车重量, 默认为No, 即不忽略, 也就是算路时会考虑货车的重量. 如为YES,就会忽略货车重量. since 6.2.0
|
||
///Whether to ignore the weight of the truck when calculating the route, the default is No, which means not to ignore, that is, the weight of the truck will be considered when calculating the route. If it is YES, the weight of the truck will be ignored
|
||
@property (nonatomic, assign) BOOL isLoadIgnore;
|
||
|
||
///设置货车的类型(大小), 1:微型货车; 2:轻型/小型货车; 3:中型货车; 4:重型货车, 默认为2
|
||
///Set the type (size) of truck, 1: Mini truck; 2: Light/Small truck; 3: Medium truck; 4: Heavy truck, default is 2
|
||
@property (nonatomic, assign) NSInteger size;
|
||
|
||
///设置货车的轴数(用来计算过路费及限重), 取值[0-255], type = 1时生效, 默认为2
|
||
///Set the number of axles for the truck (used to calculate tolls and weight limits), value range [0-255], effective when type = 1, default is 2
|
||
@property (nonatomic, assign) NSInteger axisNums;
|
||
|
||
///设置货车的宽度, 范围:[0-25.5], 单位:米, type = 1时生效, 默认2.5米
|
||
///Set the width of the truck, range: [0-25.5], unit: meters, effective when type = 1, default is 2.5 meters
|
||
@property (nonatomic, assign) CGFloat width;
|
||
|
||
///设置货车的高度, 范围:取值[0-25.5], 单位:米, type = 1时生效, 默认1.6米
|
||
///Set the height of the truck, range: value [0-25.5], unit: meters, effective when type = 1, default 1.6 meters
|
||
@property (nonatomic, assign) CGFloat height;
|
||
|
||
///设置货车的最大长度, 取值[0-25], 单位:米, type = 1时生效, 默认6米
|
||
///Set the maximum length of the truck, value [0-25], unit: meters, effective when type = 1, default 6 meters
|
||
@property (nonatomic, assign) CGFloat length;
|
||
|
||
///设置货车的总重, 范围:取值[0-6553.5], 单位:吨, type = 1时生效, 注意:总重 = 车重 + 核定载重
|
||
///Set the total weight of the truck, range: value [0-6553.5], unit: ton, effective when type = 1, note: total weight = vehicle weight + approved load capacity
|
||
@property (nonatomic, assign) CGFloat load;
|
||
|
||
///设置货车的核定载重, 范围:取值[0-6553.5], 单位:吨, type = 1时生效
|
||
///Set the approved load capacity of the truck, range: value [0-6553.5], unit: ton, effective when type = 1
|
||
@property (nonatomic, assign) CGFloat weight;
|
||
|
||
///摩托车排量, 单位: 毫升 since 8.0.0
|
||
///Motorcycle displacement, unit: milliliter
|
||
@property (nonatomic, assign) NSInteger motorcycleCC;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviNotAvoidFacilityAndForbiddenInfo
|
||
|
||
///导航过程中的没有避开的设施、禁行标志等信息 since 6.0.0
|
||
///Information on facilities and no-entry signs not avoided during navigation
|
||
@interface AMapNaviNotAvoidFacilityAndForbiddenInfo : NSObject <NSCopying,NSCoding>
|
||
|
||
///类型,1:限高; 2:限宽; 3:限重; 4:禁行
|
||
///Types,1: Height limit; 2: Width limit; 3: Weight limit; 4: No entry
|
||
@property (nonatomic, assign) NSInteger type;
|
||
|
||
///禁行类型,-1:无效; 0:禁止左转; 1:禁止右转; 2:禁止左掉头; 3:禁止右掉头; 4:禁止直行
|
||
///Prohibition type, -1: invalid; 0: no left turn; 1: no right turn; 2: no left U-turn; 3: no right U-turn; 4: no straight
|
||
@property (nonatomic, assign) NSInteger forbiddenType;
|
||
|
||
///自车到设施的距离,-1表示没有剩余距离信息。
|
||
///Distance from vehicle to facility, -1 means no remaining distance information.
|
||
@property (nonatomic, assign) NSInteger distance;
|
||
|
||
///设施的经纬度
|
||
///Latitude and longitude of the facilities
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviRouteForbiddenInfo
|
||
|
||
/** 车型 Vehicle Type
|
||
* 第1位:全部车型 1st Position: All Vehicle Types
|
||
* 第2位:小车 2nd Position: Compact Car
|
||
* 第3位:微型货车 3rd Position: Mini Van
|
||
* 第4位:轻型货车 4th Position: Light Truck
|
||
* 第5位:中型货车 5th Position: Medium Truck
|
||
* 第6位:重型货车 6th Position: Heavy Truck
|
||
* 第7位:拖挂 7th Position: Trailer
|
||
* 第8位:保留 8th Position: Reserved
|
||
*/
|
||
///路线上的禁行标示信息 since 6.0.0
|
||
///Prohibition sign information on the route
|
||
@interface AMapNaviRouteForbiddenInfo : NSObject <NSCopying>
|
||
|
||
///类型, 0:禁止左转; 1:禁止右转; 2:禁止左掉头; 3:禁止右掉头; 4:禁止直行
|
||
///Type, 0: No left turn; 1: No right turn; 2: No U-turn to the left; 3: No U-turn to the right; 4: No straight ahead
|
||
@property (nonatomic, assign) NSInteger type;
|
||
|
||
///车型, 用一个长度为8的字符串表示,每一位上的数字如果为1, 表示该车型禁行,如果为0, 表示该车型不禁行. 如 '00001110' 表示'中型货车、重型货车、拖挂'禁行
|
||
///Vehicle type, represented by an 8-character string, where a '1' in any position indicates that the vehicle type is prohibited, and a '0' indicates that it is not prohibited. For example, '00001110' means 'medium trucks, heavy trucks, and trailers' are prohibited
|
||
@property (nonatomic, strong) NSString *vehicleType;
|
||
|
||
///禁行标示所在的位置
|
||
///Location of the prohibition sign
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///禁行相关的时间信息
|
||
///Time information related to the prohibition
|
||
@property (nonatomic, strong) NSString *timeDescription;
|
||
|
||
///禁行标示所在的道路名
|
||
///Road name where the no-entry sign is located
|
||
@property (nonatomic, strong) NSString *roadName;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviRoadFacilityInfo
|
||
|
||
///道路设施信息 since 6.0.0
|
||
///Road facility information
|
||
@interface AMapNaviRoadFacilityInfo : NSObject <NSCopying>
|
||
|
||
///设施类型
|
||
///Facility type
|
||
@property (nonatomic, assign) AMapNaviRoadFacilityType type;
|
||
|
||
///设施所在的位置
|
||
///Location of the facility
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///设施所在的道路名
|
||
///Road name where the facility is located
|
||
@property (nonatomic, strong) NSString *roadName;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviRouteNotifyData
|
||
|
||
///实时导航过程中关于路线的‘通知信息’ since 6.2.0
|
||
///'Notification information' about the route during real-time navigation
|
||
@interface AMapNaviRouteNotifyData : NSObject <NSCopying>
|
||
|
||
///信息的类型
|
||
///Type of information
|
||
@property (nonatomic, assign) AMapNaviRouteNotifyDataType type;
|
||
|
||
///是否成功避开了:限行区域、禁行区域、道路关闭区域、拥堵区域; 是否成功了切换了主备选路线
|
||
///Whether successfully avoided: restricted zones, no-entry zones, road closure areas, congestion areas; whether successfully switched to the alternate route
|
||
@property (nonatomic, assign) BOOL success;
|
||
|
||
///当前位置距信息发生位置的距离. 注意:-1代表距离无效; 0代表当前已处在信息发生的范围内
|
||
///The distance from the current location to the location where the information occurred. Note: -1 indicates that the distance is invalid; 0 indicates that you are already within the range where the information occurred
|
||
@property (nonatomic, assign) NSInteger distance;
|
||
|
||
///信息发生的位置坐标
|
||
///Coordinates where the information occurred
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///信息发生所在道路的名字
|
||
///Name of the road where the information occurred
|
||
@property (nonatomic, copy) NSString *roadName;
|
||
|
||
///信息发生的原因
|
||
///The reason for the information occurrence
|
||
@property (nonatomic, copy) NSString *reason;
|
||
|
||
///信息的补充说明
|
||
///Additional information about the information
|
||
@property (nonatomic, copy) NSString *subTitle;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviCongestionInfo
|
||
|
||
///实时导航中的拥堵区域信息 since 6.3.0
|
||
///Real-time traffic congestion area information
|
||
@interface AMapNaviCongestionInfo : NSObject <NSCopying>
|
||
|
||
///离自车位置最近的拥堵区域的总长度(单位:米), 如果当前自车位置已在拥堵区域内,表示的就是剩余的拥堵距离
|
||
///The total length of the nearest congestion area to the vehicle's current position (unit: meters). If the vehicle is already within the congestion area, this represents the remaining congestion distance.
|
||
@property (nonatomic, assign) NSInteger remainDistance;
|
||
|
||
///预计通过该拥区域的时长(单位:秒), 如果当前自车位置已在拥堵区域内,表示的就是剩余拥堵段的通过时长
|
||
///Estimated time to pass through the congested area (in seconds). If the current vehicle position is already within the congested area, it represents the remaining time to pass through the congested segment
|
||
@property (nonatomic, assign) NSInteger remainTime;
|
||
|
||
///当前自车位置是否在拥堵区域内
|
||
///Whether the current vehicle position is within the congested area
|
||
@property (nonatomic, assign) BOOL inCongestionArea;
|
||
|
||
///拥堵程度, 只会是: AMapNaviRouteStatusSlow, AMapNaviRouteStatusJam, AMapNaviRouteStatusSeriousJam
|
||
///Congestion level, can only be: AMapNaviRouteStatusSlow, AMapNaviRouteStatusJam, AMapNaviRouteStatusSeriousJam
|
||
@property (nonatomic, assign) AMapNaviRouteStatus status;
|
||
|
||
///该拥堵区域的起始Segment的索引
|
||
///The index of the starting segment in the congested area
|
||
@property (nonatomic, assign) NSInteger beginSegmentIndex;
|
||
|
||
///该拥堵区域的起始Segment中起始link的索引
|
||
///The index of the starting link in the starting segment of the congested area
|
||
@property (nonatomic, assign) NSInteger beginLinkIndex;
|
||
|
||
///该拥堵区域的结束Segment的索引
|
||
///The index of the ending segment in the congested area
|
||
@property (nonatomic, assign) NSInteger endSegmentIndex;
|
||
|
||
///该拥堵区域的结束Segment中结束link的索引
|
||
///The index of the ending link in the ending segment of the congested area
|
||
@property (nonatomic, assign) NSInteger endLinkIndex;
|
||
|
||
//!< 拥堵起点区域最近(拥堵起始点前)的形状点索引
|
||
///Shape point index closest to the congestion starting area (before the congestion starting point)
|
||
@property (nonatomic, assign) NSInteger beginCoorIndex;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviSuggestChangeMainNaviRouteInfo
|
||
|
||
///多路线导航模式下,建议将某备选路线切换为主导航路线 since 6.3.0
|
||
///In multi-route navigation mode, it is recommended to switch an alternative route to the main navigation route
|
||
@interface AMapNaviSuggestChangeMainNaviRouteInfo : NSObject <NSCopying>
|
||
|
||
///建议切换为主导航路线的备选路线
|
||
///The alternative route recommended to switch to the main navigation route
|
||
@property (nonatomic, weak) AMapNaviRoute *backupRoute;
|
||
|
||
///该备选路线比目前主导航路线节省的时间, 单位:秒
|
||
///The time saved by this alternative route compared to the current main navigation route, unit: seconds
|
||
@property (nonatomic, assign) NSInteger savingTime;
|
||
|
||
///该备选路线途径的主要道路名称
|
||
///The main road names along the alternative route
|
||
@property (nonatomic, copy) NSString *wayRoadName;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviRouteIconPoint
|
||
|
||
///路径的扎点信息 since 6.3.0
|
||
///Path waypoint information
|
||
@interface AMapNaviRouteIconPoint : NSObject <NSCopying>
|
||
|
||
///扎点类型
|
||
///Waypoint type
|
||
@property (nonatomic, assign) AMapNaviRouteIconPointType type;
|
||
|
||
///扎点坐标点
|
||
///Waypoint coordinates
|
||
@property (nonatomic, strong) AMapNaviPoint *point;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviTrafficIncidentInfo
|
||
|
||
///路径交通事件信息 since 6.4.0
|
||
///Path traffic event information
|
||
@interface AMapNaviTrafficIncidentInfo : NSObject <NSCopying>
|
||
|
||
///标题
|
||
///Title
|
||
@property (nonatomic, strong) NSString *title;
|
||
|
||
///信息发生的位置坐标
|
||
///Coordinates of the information occurrence
|
||
@property (nonatomic, strong) AMapNaviPoint *coordinate;
|
||
|
||
///0:起点所在道路上有避不开的封路事件; 1:途径点所在道路上有避不开的封路事件; 2:终点所在道路上有避不开的封路事件; 3:非起点、非途径点、非终点所在道路上有避不开的封路事件; 4:可以避开的封路事件; 5:路径上的非封路事件; 6:排序干预; 7:终点干预
|
||
///0:Starting point road has unavoidable closure event; 1:Waypoint road has unavoidable closure event; 2:Destination road has unavoidable closure event; 3: Unavoidable road closure on roads that are not the starting point, waypoint, or destination; 4: Avoidable road closure; 5: Non-road closure on the path; 6: Sorting intervention; 7: Destination intervention
|
||
@property (nonatomic, assign) NSInteger titleType;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviPOIInfo
|
||
|
||
///高德POI信息 since 6.4.0
|
||
///AutoNavi POI information
|
||
@interface AMapNaviPOIInfo : NSObject <NSCopying>
|
||
|
||
///POI的名字
|
||
@property (nonatomic, copy) NSString *name;
|
||
|
||
///POI的id
|
||
///POI ID
|
||
@property (nonatomic, copy) NSString *mid;
|
||
|
||
///POI的坐标点
|
||
///POI coordinates
|
||
@property (nonatomic, strong) AMapNaviPoint *locPoint;
|
||
|
||
///车头方向角度, 默认为-1, 0为正北, 顺时针方向增加. 注意:mid == nil && locPoint != nil && startAngle >=0 才起作用. since 6.6.0
|
||
///The heading angle, default is -1, 0 is due north, increasing clockwise. Note: It only takes effect when mid == nil && locPoint != nil && startAngle >=0
|
||
@property (nonatomic, assign) double startAngle;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviParallelRoadInfo
|
||
|
||
///平行路切换信息 since 6.6.0
|
||
///Parallel road switching information
|
||
@interface AMapNaviParallelRoadInfo : NSObject
|
||
|
||
///切换类型, 1:主辅路切换; 2:高架桥上下切换
|
||
///Switch type, 1: Main/auxiliary road switching; 2: Elevated road upper/lower switching
|
||
@property (nonatomic, assign) NSInteger type;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviToWayPointInfo
|
||
|
||
///当前自车位置到途经点的信息 since 6.7.0
|
||
///Information from current vehicle position to waypoint
|
||
@interface AMapNaviToWayPointInfo : NSObject <NSCopying>
|
||
|
||
///途径点POI的id
|
||
///POI ID of the waypoint
|
||
@property (nonatomic, copy) NSString *mid;
|
||
|
||
///途径点的坐标
|
||
///Coordinates of the waypoint
|
||
@property (nonatomic, strong) AMapNaviPoint *point;
|
||
|
||
///剩余的距离,单位:米
|
||
///Remaining distance in meters
|
||
@property (nonatomic, assign) NSInteger remainDistance;
|
||
|
||
///剩余的时间,单位:秒
|
||
///Remaining time in seconds
|
||
@property (nonatomic, assign) NSInteger remainTime;
|
||
|
||
/// 获取自车位置到前方第一个途径点的红绿灯数量 since 9.5.0
|
||
/// Number of traffic lights from the current vehicle position to the first waypoint ahead
|
||
@property (nonatomic, assign) NSInteger trafficlightNum;
|
||
|
||
@end
|
||
|
||
|
||
#pragma mark - AMapNaviRouteWayPointInfo
|
||
|
||
///路线上的途径点信息 since 6.7.0
|
||
///Waypoint information on the route
|
||
@interface AMapNaviRouteWayPointInfo : NSObject <NSCopying>
|
||
|
||
///途径点POI的id
|
||
///POI ID of the waypoint
|
||
@property (nonatomic, copy) NSString *mid;
|
||
|
||
///途径点的坐标
|
||
///Coordinates of the waypoint
|
||
@property (nonatomic, strong) AMapNaviPoint *point;
|
||
|
||
///途径点所在的segment在AMapNaviRoute.routeSegments中的索引值
|
||
///The index value of the segment where the waypoint is located in AMapNaviRoute.routeSegments
|
||
@property (nonatomic, assign) NSUInteger segmentIndexInRoute;
|
||
|
||
///途径点在AMapNaviRoute.routeCoordinates中的索引值
|
||
///The index value of the waypoint in AMapNaviRoute.routeCoordinates
|
||
@property (nonatomic, assign) NSUInteger pointIndexInRoute;
|
||
|
||
@end
|
||
|
||
|
||
#pragma mark - AMapNaviExitBoardInfo
|
||
|
||
///高速或城市快速路的出口路牌信息 since 6.8.0
|
||
///Exit sign information for highways or urban expressways
|
||
@interface AMapNaviExitBoardInfo : NSObject <NSCopying>
|
||
|
||
///出口编号名字
|
||
///Exit number name
|
||
@property (nonatomic, strong) NSArray <NSString *> *exitNames;
|
||
|
||
///路牌方向名字
|
||
///Direction name on the sign
|
||
@property (nonatomic, strong) NSArray <NSString *> *directionInfos;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviDriveComfort
|
||
|
||
///道路舒适度信息 since 9.3.5
|
||
///Road comfort information
|
||
@interface AMapNaviDriveComfort : NSObject<NSCopying>
|
||
|
||
///驾驶事件类型
|
||
///Driving event type
|
||
@property (nonatomic, assign) double statusComfortIndex;
|
||
|
||
///事件开始地点纬度
|
||
///Latitude of the event start location
|
||
@property (nonatomic, assign) double statusStartLatitude;
|
||
|
||
///事件开始地点经度
|
||
///Longitude of the event start location
|
||
@property (nonatomic, assign) double statusStartLongitude;
|
||
|
||
///事件结束地点纬度
|
||
///Event end location latitude
|
||
@property (nonatomic, assign) double statusEndLatitude;
|
||
|
||
///事件结束地点经度
|
||
///Event end location longitude
|
||
@property (nonatomic, assign) double statusEndLongitude;
|
||
|
||
///事件开始时间
|
||
///Event start time
|
||
@property (nonatomic, assign) NSInteger statusStartTime;
|
||
|
||
///事件结束时间
|
||
///Event end time
|
||
@property (nonatomic, assign) NSInteger statusEndTime;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviDriveEvent
|
||
|
||
///驾驶三急(急加速/急减速/急转弯)事件信息 since 9.3.5
|
||
///Driving three urgent (sudden acceleration/sudden deceleration/sudden turn) event information
|
||
@interface AMapNaviDriveEvent : NSObject<NSCopying>
|
||
|
||
///驾驶事件类型
|
||
///Driving event type
|
||
@property (nonatomic, assign) AMapNaviDriveEventType eventType;
|
||
|
||
///驾驶事件严重程度
|
||
///Driving Event Severity
|
||
@property (nonatomic, assign) double eventLevel;
|
||
|
||
///事件地点纬度
|
||
///Event Location Latitude
|
||
@property (nonatomic, assign) double eventLatitude;
|
||
|
||
///事件地点经度
|
||
///Event Location Longitude
|
||
@property (nonatomic, assign) double eventLongitude;
|
||
|
||
///事件开始时间
|
||
///Event Start Time
|
||
@property (nonatomic, assign) NSInteger eventStartTime;
|
||
|
||
///事件结束时间
|
||
///Event End Time
|
||
@property (nonatomic, assign) NSInteger eventEndTime;
|
||
|
||
///事件最大速度
|
||
///Event Maximum Speed
|
||
@property (nonatomic, assign) double eventMaxSpeed;
|
||
|
||
///事件最大加速度
|
||
///Event Maximum Acceleration
|
||
@property (nonatomic, assign) double eventMaxAcc;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviPolylineGreyColor
|
||
|
||
///路线走过后置灰的颜色. since 7.4.0
|
||
///Color of the route after passing
|
||
@interface AMapNaviPolylineGreyColor : NSObject <NSCopying>
|
||
|
||
///填充颜色
|
||
///Fill color
|
||
@property (nonatomic, strong) UIColor *fillColor;
|
||
|
||
///边框颜色
|
||
///Border color
|
||
@property (nonatomic, strong) UIColor *borderColor;
|
||
|
||
///鱼骨线颜色
|
||
///Fishbone line color
|
||
@property (nonatomic, strong) UIColor *arrowColor;
|
||
|
||
///填充颜色(夜间)
|
||
///Fill color (night)
|
||
@property (nonatomic, strong) UIColor *fillColorNight;
|
||
|
||
///边框颜色(夜间)
|
||
///Border color (night)
|
||
@property (nonatomic, strong) UIColor *borderColorNight;
|
||
|
||
///鱼骨线颜色(夜间)
|
||
///Fishbone line color (night)
|
||
@property (nonatomic, strong) UIColor *arrowColorNight;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviPolylineTrafficStatusColor
|
||
|
||
///路线的路况颜色. since 7.4.0
|
||
///Route traffic color
|
||
@interface AMapNaviPolylineTrafficStatusColor : NSObject <NSCopying>
|
||
|
||
///路况,表示该颜色将在该路况下生效
|
||
///Traffic condition, indicating the color will take effect under this condition
|
||
@property (nonatomic, assign) AMapNaviRouteStatus status;
|
||
|
||
///当前路线的填充颜色(白天)
|
||
///Current route fill color (daytime)
|
||
@property (nonatomic, strong) UIColor *fillColorHighlight;
|
||
|
||
///当前路线的边框颜色(白天)
|
||
///Current route border color (daytime)
|
||
@property (nonatomic, strong) UIColor *borderColorHighlight;
|
||
|
||
///备选路线的填充颜色(白天)
|
||
///Alternative route fill color (daytime)
|
||
@property (nonatomic, strong) UIColor *fillColor;
|
||
|
||
///备选路线的边框颜色(白天)
|
||
///Border color of alternative routes (day)
|
||
@property (nonatomic, strong) UIColor *borderColor;
|
||
|
||
///当前路线的填充颜色(黑夜)
|
||
///Fill color of current route (night)
|
||
@property (nonatomic, strong) UIColor *fillColorHighlightNight;
|
||
|
||
///当前路线的边框颜色(黑夜)
|
||
///Border color of current route (night)
|
||
@property (nonatomic, strong) UIColor *borderColorHighlightNight;
|
||
|
||
///备选路线的填充颜色(黑夜)
|
||
///Fill color of alternative routes (night)
|
||
@property (nonatomic, strong) UIColor *fillColorNight;
|
||
|
||
///备选路线的边框颜色(黑夜)
|
||
///Border color of alternative routes (night)
|
||
@property (nonatomic, strong) UIColor *borderColorNight;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviPCMTask
|
||
|
||
///PCM任务对象
|
||
///PCM task object
|
||
@interface AMapNaviPCMTask : NSObject <NSCopying>
|
||
|
||
///任务ID
|
||
///Task ID
|
||
@property (nonatomic, assign) NSInteger taskId;
|
||
|
||
///优先级
|
||
///Priority
|
||
@property (nonatomic, assign) NSInteger priority;
|
||
|
||
///声音类型
|
||
///Sound type
|
||
@property (nonatomic, assign) AMapNaviSoundType soundType;
|
||
|
||
@end
|
||
|
||
#pragma mark - AMapNaviTMCStatusColor
|
||
|
||
///光柱图的颜色。since 10.0.0
|
||
///Color of the light bar
|
||
@interface AMapNaviTMCStatusColor : NSObject <NSCopying>
|
||
|
||
///路况,表示该颜色将在该路况下生效
|
||
///Traffic condition, indicating the color will take effect under this condition
|
||
@property (nonatomic, assign) AMapNaviRouteStatus status;
|
||
|
||
///当前路况对应的光柱图填充颜色
|
||
///Fill color of the light bar corresponding to the current traffic condition
|
||
@property (nonatomic, strong) UIColor *color;
|
||
|
||
@end
|
||
|
||
|
||
///交通事件类型。since 10.0.920
|
||
///Traffic incident type. since 10.0.920
|
||
typedef NS_ENUM(NSInteger, AMapNaviTrafficEventType) {
|
||
AMapNaviTrafficEventTypeAccident = 1, // 事故 Accident
|
||
AMapNaviTrafficEventTypeConstruction = 2, // 施工 Construction
|
||
AMapNaviTrafficEventTypeClose = 3, // 封路 Road Closure
|
||
AMapNaviTrafficEventTypeControl = 4, // 管制 Control
|
||
};
|
||
|
||
/// 交通事件信息 Traffic incident information since 10.0.920
|
||
@interface AMapNaviTrafficEventItem : NSObject<NSCopying>
|
||
|
||
/// 事件类型 Event Type
|
||
@property (nonatomic, assign) AMapNaviTrafficEventType type;
|
||
|
||
/// 事件的位置点(经纬度) Event location point (latitude and longitude)
|
||
@property (nonatomic, assign) CLLocationCoordinate2D coord;
|
||
|
||
/// 开始link的segment索引 Start link segment index
|
||
@property (nonatomic, assign) NSInteger startSegmentIndex;
|
||
|
||
/// 开始link的link索引 Start link index of link
|
||
@property (nonatomic, assign) NSInteger startLinkIndex;
|
||
|
||
/// 结束link的segment索引 End the segment index of the link
|
||
@property (nonatomic, assign) NSInteger endSegmentIndex;
|
||
|
||
/// 结束link的link索引 End the link index of the link
|
||
@property (nonatomic, assign) NSInteger endLinkIndex;
|
||
|
||
/// 事件简要描述信息 Brief description of the event
|
||
@property (nonatomic, assign) NSInteger label;
|
||
|
||
/// 事件来源描述信息 Event source description information
|
||
@property (nonatomic, copy) NSString *labelDesc;
|
||
@end
|
||
|
||
/// 交通事件信息 Traffic incident information since 10.0.920
|
||
@interface AMapNaviRouteTrafficEventInfo : NSObject<NSCopying>
|
||
|
||
/// 路线上的交通事件 Traffic incidents on the route
|
||
@property (nonatomic, strong) NSArray<AMapNaviTrafficEventItem *> *infoList;
|
||
/// 路线id Route ID
|
||
@property (nonatomic, assign) NSUInteger routeID;
|
||
|
||
@end
|
||
|
||
/// AMapNaviInputTip类 用于表示输入提示 返回数据类型 @since 10.0.921
|
||
/// The AMapNaviInputTip class is used to represent input suggestions and return data types. @since 10.0.921
|
||
@interface AMapNaviInputTip : NSObject<NSCopying>
|
||
|
||
/// POI的唯一标识符: 必传 Unique identifier of POI: mandatory
|
||
@property (nonatomic, copy) NSString *mid;
|
||
|
||
/// POI的名称 :必传 POI name: required
|
||
@property (nonatomic, copy) NSString *name;
|
||
|
||
/// POI的地理位置坐标,通常表示为经纬度字符串; 必传 The geographic coordinates of a POI, usually expressed as latitude and longitude strings; mandatory
|
||
@property (nonatomic, copy) AMapNaviPoint *location;
|
||
|
||
/// POI所在地区的名称 Name of the region where the POI is located
|
||
@property (nonatomic, nullable, copy) NSString *district;
|
||
|
||
/// POI的行政区划编码 Administrative division code of POI
|
||
@property (nonatomic, nullable, copy) NSString *adcode;
|
||
|
||
/// POI的详细地址信息 Detailed address information of POI
|
||
@property (nonatomic, nullable, copy) NSString *address;
|
||
|
||
/// POI的类型编码,用于表示该地点的类型(如餐馆、商店等)
|
||
/// POI type code, used to indicate the type of the location (such as restaurants, shops, etc.)
|
||
@property (nonatomic, nullable, copy) NSString *typecode;
|
||
|
||
@end
|
||
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
///AMapNaviPOI since 10.1.0
|
||
@interface AMapNaviPOI : NSObject <NSCopying>
|
||
|
||
@property (nonatomic, copy) NSString *poiId;
|
||
|
||
@property (nonatomic, copy) NSString *name;
|
||
|
||
@property (nonatomic, strong) AMapNaviPoint *point;
|
||
|
||
@property (nonatomic, nullable, copy) NSString *telephone;
|
||
|
||
|
||
/**
|
||
停车服务:15090X Parking services:15090X
|
||
餐饮服务:050XXX Dining Services:050XXX
|
||
购物服务:060XXX Shopping Services:060XXX
|
||
卫生间:2003XX Restroom:2003XX
|
||
充电站:011100 Charging station:011100
|
||
专用充电站/换电站:011101\011102\011103 Dedicated charging station\/battery swap station:011101\011102\011103
|
||
加油站:0101XX Gas Station:0101XX
|
||
加气站:010300 Gas station:010300
|
||
**/
|
||
@property (nonatomic, copy) NSString *typeCode;
|
||
|
||
|
||
@end
|
||
|
||
|
||
///充电详情 Charging details since 10.1.0
|
||
@interface AMapNaviChargingInfo : NSObject <NSCopying>
|
||
|
||
///快充数量 Number of fast chargers
|
||
@property (nonatomic, assign) NSInteger numFast;
|
||
|
||
///慢充数量 Slow charging quantity
|
||
@property (nonatomic, assign) NSInteger numSlow;
|
||
|
||
///超充数量 Number of Superchargers
|
||
@property (nonatomic, assign) NSInteger numSuper;
|
||
|
||
///描述 description
|
||
@property (nonatomic, nullable, copy) NSString *openTagForward;
|
||
|
||
///充电站名称 Charging station name
|
||
@property (nonatomic, nullable, copy) NSString *name;
|
||
|
||
///充电价格描述 Charging price description
|
||
@property (nonatomic, nullable, copy) NSString *priceChargingDesc;
|
||
|
||
///设备信息描述 Device information description
|
||
@property (nonatomic, nullable, copy) NSString *equipmentInfoDesc;
|
||
|
||
|
||
@end
|
||
|
||
|
||
|
||
///服务区子poi since 10.1.0 Service Area Sub POI Since 10.1.0
|
||
@interface AMapNaviServiceAreaChildrenPOI : AMapNaviPOI <NSCopying>
|
||
|
||
// POI 描述: 例如:汽车服务;充电站;充电站 POI description: e.g. car service; charging station; charging station
|
||
@property (nonatomic, copy) NSString *childType;
|
||
|
||
@end
|
||
|
||
|
||
///服务区详细信息 since 10.1.0
|
||
///Service area details since 10.1.0
|
||
@interface AMapNaviServiceAreaDetailInfo : AMapNaviPOI <NSCopying>
|
||
|
||
|
||
///当前位置到服务区域的距离,单位:米
|
||
///Distance from current location to service area, unit: meters
|
||
@property (nonatomic, assign) NSInteger distance;
|
||
|
||
///当前位置到服务区域的预估时间, 单位:秒
|
||
///Estimated time from current location to service area, unit: seconds
|
||
@property (nonatomic, assign) NSInteger time;
|
||
|
||
///服务区的轮廓形状点
|
||
///contour shape points of the service area
|
||
@property (nonatomic, copy) NSString *shape;
|
||
|
||
///服务区详细信息:按位标识(0-没有,1-有)二进制位含义如下:0:加油站. 1:餐饮服务. 2:卫生间. 3:汽车维修. 4:购物5:住宿. 6:充电站. 7:停车服务. 8:加气服务.
|
||
///Service area details: Bitwise flag (0-absent, 1-present) binary bit meanings are as follows: 0:Gas station. 1:Dining service. 2:Restroom. 3:Auto repair. 4:Shopping. 5:Lodging. 6:Charging station. 7:Parking service. 8:Gas refill service.
|
||
@property (nonatomic, assign) NSUInteger sapaDetail;
|
||
|
||
///地址 Address
|
||
@property (nonatomic, copy) NSString *address;
|
||
|
||
///各个服务品类的子POI Sub-POIs of each service category
|
||
@property (nonatomic, copy) NSArray<AMapNaviServiceAreaChildrenPOI *> *serviceChildren;
|
||
|
||
///营业时间的文本描述 Text description of business hours
|
||
@property (nonatomic, copy) NSString *normalTimeText;
|
||
|
||
///标准的停车价格 Standard parking rates
|
||
@property (nonatomic, nullable, copy) NSString *priceParkingStd;
|
||
|
||
///充电详情 Charging Details
|
||
@property (nonatomic, copy) NSArray<AMapNaviChargingInfo *> *chargingInfos;
|
||
|
||
@end
|
||
|
||
|
||
@interface AMapNaviSlopeInfo : NSObject <NSCopying>
|
||
|
||
/// 上下坡类型 AMapNaviSlopeType
|
||
/// Up/Down Slope Type AMapNaviSlopeType
|
||
@property (nonatomic, assign) AMapNaviSlopeType slopeType;
|
||
|
||
/// 斜坡的形状坐标串,多个坐标用分号(;)分割 示例:116.123456,39.123456;116.123457,39.123457
|
||
/// Shape coordinate string of slope, multiple coordinates separated by semicolons (;) Example:116.123456,39.123456;116.123457,39.123457
|
||
@property (nonatomic, copy) NSString *points;
|
||
|
||
/// 斜坡的角度,坡度,单位:十分之一度(0.1度)
|
||
/// Angle of slope, gradient, unit: tenth of a degree (0.1 degree)
|
||
@property (nonatomic, assign) NSInteger slopeAngle;
|
||
|
||
/// 斜坡的长度,单位:米 Length of the slope, unit: meters
|
||
@property (nonatomic, assign) NSInteger slopeLength;
|
||
|
||
/// 斜坡的高度差,单位:米 Height difference of the slope, unit: meters
|
||
@property (nonatomic, assign) NSInteger slopeHeight;
|
||
|
||
@end
|
||
|
||
|
||
@interface AMapNaviCalRouteOptions : NSObject <NSCopying>
|
||
|
||
/// 路径的计算策略:默认值 AMapNaviDrivingStrategyMultipleDefault,多路径: 默认,速度优先(避让拥堵+速度优先+避免收费)
|
||
/// Path calculation strategy: default value AMapNaviDriving StrategyMultipleDefault, multi-path: default, speed priority (avoiding congestion+speed priority+avoiding charges)
|
||
@property (nonatomic, assign) AMapNaviDrivingStrategy strategy;
|
||
|
||
///算路调用来源:默认值AMapNaviInvokerTypeNavi
|
||
///Route calculation invocation source: Default value AMapNaviInvokerTypeNavi
|
||
@property (nonatomic, assign) AMapNaviInvokerType invokerType;
|
||
|
||
///是否使用智能排序,默认为YES Whether to use intelligent sorting, default is YES
|
||
///@note支持 驾车、货车 Supports driving, trucks
|
||
///@since 10.2.0
|
||
@property (nonatomic, assign) BOOL intelligentSorting;
|
||
|
||
@end
|
||
|
||
|
||
|
||
NS_ASSUME_NONNULL_END
|
||
|
||
#pragma mark - AMapNaviAppLangOptions
|
||
|
||
///导航语言设置选项
|
||
///Navigation language settings options (since 11.1.200)
|
||
@interface AMapNaviAppLangOptions : NSObject <NSCopying>
|
||
|
||
// 注意:在使用导航功能前,请通过 [AMapServices sharedServices].regionLanguageType 来设置语言类型 (since 11.2.000)
|
||
///语言类型
|
||
///Language type
|
||
// @property (nonatomic, assign) AMapRegionLanguageType appLangType;
|
||
|
||
///语音包地址
|
||
///Voice package address
|
||
@property (nonatomic, strong, nullable) NSString *voicePath;
|
||
|
||
///语音播报者ID
|
||
///Voice speaker ID
|
||
@property (nonatomic, assign) NSInteger speakerId;
|
||
|
||
///导航播报模式
|
||
@property (nonatomic, assign) AMapNaviAudioOutputMode audioOutputMode;
|
||
|
||
@end
|