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/