currentAdvice.adviceInstruction 返回奇怪的结果
currentAdvice.adviceInstruction returning strange results
在 IOS,我正在使用委托方法:\
func routingService(routingService: SKRoutingService!, didChangeCurrentAdvice currentAdvice: SKRouteAdvice!, isLastAdvice: Bool) {
print("adviceInstruction")
print(currentAdvice.adviceInstruction)
delegate?.didChangeCurrentAdvice(currentAdvice.adviceInstruction)
}
模拟器模式下运行时的currentAdvice.adviceInstruction,returns列出距离时的奇怪指令,如:
in 200 50 yards turn right
我希望能够在我的应用程序中说明您要转弯的位置和距离。所以我希望在 50 码处右转。还有其他方法吗?
有关上下文,请参阅 this 文章。
如果您需要 "human readable" 文本说明,请使用 TTS 选项获取音频建议:http://developer.skobbler.com/getting-started/ios#sec24
在 IOS,我正在使用委托方法:\
func routingService(routingService: SKRoutingService!, didChangeCurrentAdvice currentAdvice: SKRouteAdvice!, isLastAdvice: Bool) {
print("adviceInstruction")
print(currentAdvice.adviceInstruction)
delegate?.didChangeCurrentAdvice(currentAdvice.adviceInstruction)
}
模拟器模式下运行时的currentAdvice.adviceInstruction,returns列出距离时的奇怪指令,如:
in 200 50 yards turn right
我希望能够在我的应用程序中说明您要转弯的位置和距离。所以我希望在 50 码处右转。还有其他方法吗?
有关上下文,请参阅 this 文章。
如果您需要 "human readable" 文本说明,请使用 TTS 选项获取音频建议:http://developer.skobbler.com/getting-started/ios#sec24