FMKNaviConstraint Class Reference

Inherits from NSObject
Declared in FMKNaviConstraint.h

Overview

 路径约束计算结果

– initWithMapPath:

初始化约束

- (instancetype)initWithMapPath:(NSString *)mapPath

Parameters

mapPath

地图数据路径

Return Value

约束对象

Declared In

FMKNaviConstraint.h

– updateNaviConstraintDataWithPoints:groupID:

更新导航约束所需参数

- (void)updateNaviConstraintDataWithPoints:(NSArray *)mapPoints groupID:(NSString *)groupID

Parameters

mapPoints

本楼层路径分析结果

groupID

所在楼层ID

Discussion

在进行导航约束计算前都需要更新所在楼层的导航约束数据

Declared In

FMKNaviConstraint.h

– naviConstraintByLastPoint:currentMapPoint:

导航约束点计算 导航约束可将定位漂移点约束到特定路线上,在使用该方法前需更新一次当前定位楼层的导航数据

- (FMKNaviConstraintResult)naviConstraintByLastPoint:(FMKMapPoint)lastMapPoint currentMapPoint:(FMKMapPoint)currentMapPoint

Parameters

lastMapPoint

上一个定位点坐标

currentMapPoint

当前定位坐标

Return Value

导航约束结果

Declared In

FMKNaviConstraint.h

– pathContraintByLastPoint:currentMapPoint:groupID:

路径约束计算 调用此方法可以计算定位点与地图上自有路径最近的投影坐标点,并计算偏移距离等参数

- (FMKNaviConstraintResult)pathContraintByLastPoint:(FMKMapPoint)lastMapPoint currentMapPoint:(FMKMapPoint)currentMapPoint groupID:(NSString *)groupID

Parameters

lastMapPoint

上一次定位坐标点

currentMapPoint

当前定位坐标点

groupID

当前定位所在楼层

Return Value

路径约束结果

Declared In

FMKNaviConstraint.h