Lyft API
  1. User
Lyft API
  • Restricted
  • Public
    • Cost estimates
      GET
    • Available drivers nearby
      GET
    • Pickup ETAs
      GET
    • Types of rides
      GET
  • User
    • The user's general info
      GET
    • List rides
      GET
    • Request a Lyft
      POST
    • Get the ride detail of a given ride ID
      GET
    • Cancel a ongoing requested ride
      POST
    • Update the destination of the ride
      PUT
    • Add the passenger's rating, feedback, and tip
      PUT
    • Get the receipt of the rides.
      GET
  • Sandbox
    • Preset Prime Time percentage
      PUT
    • Propagate ride through ride status
      PUT
    • Preset types of rides for sandbox
      PUT
    • Driver availability for processing ride request
      PUT
  1. User

Update the destination of the ride

PUT
/rides/{id}/destination
User
Add or update the ride's destination. Note that the ride must still be active (not droppedOff or canceled), and that destinations on Lyft Line rides can not be changed.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.lyft.com/rides//destination' \
--header 'Content-Type: application/json' \
--data-raw '{
    "address": "123 Main St, Anytown, CA",
    "lat": 36.9442175,
    "lng": -123.8679133
}'
响应示例响应示例
200 - 示例 1
{
    "address": "string",
    "lat": 36.9442175,
    "lng": -123.8679133
}

请求参数

Path 参数
id
string 
必需
The ID of the ride
Body 参数application/json
lat
number <double>
必需
The latitude component of a location
lng
number <double>
必需
The longitude component of a location
address
string 
可选
A human readable address at/near the given location
示例

返回响应

🟢200成功
application/json
Successfully updated the destination. Returns the new destination.
Body
lat
number <double>
必需
The latitude component of a location
lng
number <double>
必需
The longitude component of a location
address
string 
可选
A human readable address at/near the given location
🟠400请求有误
🟠403禁止访问
🟠404记录不存在

【Lyft】API开发者 微信交流群

用微信扫右侧二维码,加入【Lyft】API开发者 交流群,互助沟通

扫码加入交流群
上一页
Cancel a ongoing requested ride
下一页
Add the passenger's rating, feedback, and tip
Built with