当我尝试在沙盒中请求乘车收据时,回复似乎总是 9 美元。金额我不太在意,但货币是有问题的。该请求是通过 API(沙盒)发出的,估计和实际乘车请求都以本地货币返回票价金额,可能是也可能不是美元。有没有办法以本地货币获得收据?
这只是沙盒实现中的遗漏,还是生产 API 中的收据也会以美元为单位?除了请求 ID (https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-receipt-get) 之外,文档没有提及接收端点的任何参数
我正在使用 API 版本 v1.2 进行测试
最佳答案
好吧,显然从您提供的网站来看,货币会自动调整到位置:
Currency
Currency is returned as the local currency of a given latitude & longitude. A fare estimate in San Francisco will be given in USD, while a fare estimate in Paris will be displayed in EUR. We also provide the ISO 4217 currency code for your own conversions.
我指的是 https://developer.uber.com/docs/riders/guides/localization .
关于uber-api - Uber REST API 请求收据沙箱货币,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45024777/