简体   繁体   English

Uber Api继续检查当地出租车

[英]Uber Api to keep checking taxis in local area

I want to create an android app which can use the uber Api to constantly check the local area for an available taxi. 我想创建一个可以使用uber Api不断检查本地可用出租车的android应用。

I thought of this idea because when I open uber it usually says no taxis available...I get one occasionally but I have to keep checking the app / leaving it open. 我想到了这个主意,因为当我打开超级巴士时通常说没有出租车...我偶尔会打车,但我必须继续检查应用程序/将其保持打开状态。

Is this possible using the uber Api? 是否可以使用uber Api? I couldn't find anything related! 我找不到任何相关内容!

Thanks Brendan 谢谢布伦丹

We don't expose an endpoint to communicate specifically where Uber is servicing which product. 我们不会公开端点专门与Uber服务哪个产品的服务进行通信。 However, you can use GET /v1/products to get that information. 但是,您可以使用GET / v1 / products获取该信息。 If you receive an empty response, no Uber products are available at the destination you specified. 如果您收到空响应,则在您指定的目的地没有可用的Uber产品。 If you receive some products, you know that there are Uber products available. 如果您收到一些产品,则说明有可用的Uber产品。 It sounds like you're just looking for Taxis, so you'd need to filter your products result to identify if that product category is serviced in your area. 听起来您只是在寻找出租车,所以您需要过滤产品结果以识别您所在地区是否提供了该产品类别。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM