优步API显示汽车位置

Gia*_*ini 4 api uber-api

有没有办法使用优步API来实时显示汽车的位置,如优步应用程序?阅读手册似乎尚未实现此功能.

rol*_*ger 5

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

 "location":{
      "latitude":37.7886532015,
      "longitude":-122.3961987534,
      "bearing":135
   },
Run Code Online (Sandbox Code Playgroud)

location object包含车辆和驾驶员位置信息的对象.
location.latitude float当前车辆的纬度.
location.longitude float当前车辆的经度.
location.bearing integer车辆的当前方位角度(0-359).

然而,话虽如此,我也非常希望得到实时的汽车位置.我读过湿婆的上述回应,但我不明白为什么分享汽车的位置会有害.最后,用户获得汽车并为此付费或不付款.知道优步汽车的位置与知道出租车在哪里没有什么不同.