api - Uber API 显示汽车位置

标签 api uber-api

有没有一种方法可以使用 Uber API 像 Uber 应用程序一样实时显示汽车位置?
阅读手册似乎尚未实现此功能。

最佳答案

似乎获得汽车实时位置的唯一方法是在请求之后。在“请求详细信息”响应中。 https://developer.uber.com/docs/v1-request-details

 "location":{
      "latitude":37.7886532015,
      "longitude":-122.3961987534,
      "bearing":135
   },

location object The object that contains the location information of the vehicle and driver.
location.latitude float The current latitude of the vehicle.
location.longitude float The current longitude of the vehicle.
location.bearing integer The current bearing of the vehicle in degrees (0-359).



然而,话虽如此,我也非常想获得实时汽车位置。我阅读了 Shiva 的上述回复,但我不明白为什么共享汽车的位置会有害。最后,用户得到汽车并支付或不支付。了解优步汽车所在的位置与了解出租车所在的位置没有什么不同。

关于api - Uber API 显示汽车位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26707972/

相关文章:

swift - 使用 NSURLSession 通过 Uber API 进行身份验证

android - 如何让用户在优步中开始和结束位置

json - 如何验证 uber webhook api?

android - 使用 Deeplink 引导用户使用 Uber for Business

swift - 从优步叫车请求小部件注销

使用 php 发送时,Azure Face api 返回 401

php - 如何使 Magento 页面完全空白?

api - 在正文中发送 GET 请求参数

api - Google API oAuth2.0 -- 消费者未注册

javascript - 如何在 while 循环中仅显示一次文本?