TencentNavKit

Instance Methods | Properties | List of all members
TNKDriveRouteRequest Class Reference

驾车算路请求类 More...

`#import <TNKDriveCommonObj.h>`

Inheritance diagram for TNKDriveRouteRequest:

## Instance Methods
(int) | - setAvoidAreas:
| 路线规划避让区域。最多支持32个避让区域，每个区域最多可设置16个顶点，需为凸多边形，顶点逆时针排列。 注意：如果起终点在避让区域内，则算路失败，错误码TNKDriveRouteSearchErrorCode_CalculateFailed 如果数据不合法，则避让策略不生效。since 5.2.5 More...

## Properties
NSArray< TNKSearchNavPoint * > * | waypoints
| 途经点数组，最多支持32个。 More...
TNKDriveRouteSearchOption * | searchOption
| 驾车路径规划算路策略 More...
Properties inherited from TNKRouteRequest
TNKSearchNavPoint * | origin
| 导航起点，必填 More...
TNKSearchNavPoint * | destination
| 导航终点，必填 More...

## Detailed Description

驾车算路请求类

## Method Documentation

## ◆ setAvoidAreas:

- (int) setAvoidAreas: |  | (NSArray< NSArray< TNKCoordinatePoint * > * > *) | avoidAreas |

路线规划避让区域。最多支持32个避让区域，每个区域最多可设置16个顶点，需为凸多边形，顶点逆时针排列。 注意：如果起终点在避让区域内，则算路失败，错误码TNKDriveRouteSearchErrorCode_CalculateFailed 如果数据不合法，则避让策略不生效。since 5.2.5

Returns
  错误码。0: 正确;1: 避让区域超过32个；2: 设置区域的顶点超过9个

## Property Documentation

## ◆ searchOption

- (TNKDriveRouteSearchOption*) searchOption
| read write nonatomic copy

驾车路径规划算路策略

## ◆ waypoints

- (NSArray<TNKSearchNavPoint *>*) waypoints
| read write nonatomic copy

途经点数组，最多支持32个。

The documentation for this class was generated from the following file:

- TNKDriveCommonObj.h