问题描述
我的问题与iOS SDK迅速相关。
返回收费公路成本时,无论我将什么国家/地区代码传递给NMATollCostRequest,它都只会返回以欧元为单位的收费公路成本值。这是正确的行为吗?然后由我来确定所需货币的汇率吗?
例如,如果我这样设置NMATollCostOptions。
let tollRoadOptions = NMATollCostOptions(vehicleProfile: self.vehicleProfile)
,然后将货币更改为英镑。
tollRoadOptions?.currency = "GBP"
let requestTolls = NMATollCostRequest(route: route,andOptions: tollRoadOptions!)
if requestTolls != nil {
requestTolls?.start { [weak self] _,tollRequestResult,error in
tollCost = tollRequestResult.tollCost.doubleValue
print("Total Toll Cost: \(tollCost!),\(tollRoadOptions!.currency)")
无论tollRoadOptions?.currency参数如何,这将返回相同的tollCost值。
感谢您的见解。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)