如何创建 SKViaPoint 的实例

How to make instance of SKViaPoint

演示应用程序中没有示例,我不知道如何创建 SKViaPoint 对象的实例。

它只被提及 SKRoutingService.h 但即使在那里我也找不到更多关于它的信息。

Class SKViaPoint.h不在项目中,或者我搜索不到。

类似于:

SKViaPoint* viaPoint = [[SKViaPoint alloc] init];

不起作用,所以有人可以帮我解决这个问题吗?

Link 到文档:

Skobbler Api Documentation

演示项目中有一些示例,即:

SKViaPoint *point = [SKViaPoint viaPoint:1 withCoordinate:coordinate];

其中方法定义(来自SkViaPoint.h)是

** A newly initialized SKViaPoint object.
 @param viaPointID The unique identifier of the viapoint.
 @param viaPointCoordinate The location of the viapoint.
 */
+ (instancetype)viaPoint:(int)viaPointID withCoordinate:(CLLocationCoordinate2D)viaPointCoordinate;