lyft-api - Lyft 通用链接 : Is it possible to set destination location without pickup location?

标签 lyft-api

来福 developers documentation指出

Note that you must set the pickup location if you're setting the destination location.

但这是相当常见的用例:我知道用户想去哪里,但我希望 Lyft 使用用户的当前位置作为上车地点,或者让他自己选择上车地点。

那么,是否可以在 Lyft Universal Links 中设置目的地位置而不明确设置上车位置?

顺便说一句,优步在其通用链接中有 pickup=my_location 参数来处理这种情况。

最佳答案

如果您省略“&pickup[latitude]=&pickup[longitude]=”查询参数,那么 lyft 将使用应用程序 (lyft) 进入前台时检测到的用户位置。所以,是的,您可以创建没有上车位置的链接,lyft 将获取该位置。

关于lyft-api - Lyft 通用链接 : Is it possible to set destination location without pickup location?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52455437/

相关文章:

ios - iOS 版 Lyft API 中的语法错误 - 无法编译?

ios - Lyft SDK DeepLinking 未预先填写接送地点

routes - Envoy RDS REST API 中的 service_cluster 和 service_node 有什么用?

swift - 行程估算请求错误 - 错误参数(缺少必需参数)- Lyft API

android - 如何使用 Lyft 驱动程序 API(如 Mystro android 应用程序)?

r - 将 curl 命令转换为 http 请求接口(interface)