Lyft

חינם
על ידי Volodimir Kudriachenko | מְעוּדכָּן לפני שנה | Transportation
פּוֹפּוּלָרִיוּת

2.9 / 10

חֶבִיוֹן

127,259ms

רמת שירות

0%

סקירה כללית של Lyft

עוקבים: 5
אֶמְצָעִי:
אתר מוצר
יוצר API:
avatar
Volodimir Kudriachenko
volodimir.kudriachenko
דרג API:
היכנס כדי לדרג את ה- API

תקרא אותי

Connect to the Lyft API to integrate Lyft’s ridesharing capabilities into your app. Test an Lyft API call and export the code snippet into your app today. Access available ride types in each city, display price estimates for each trip, design a request flow, and more.

Lyft’s Ride-sharing API has a free sandbox mode in addition to the live mode. Read more here: https://developer.lyft.com/docs/access-and-setup

Lyft Package

Lyft’s API enables developers to programmatically interact with Lyft’s rider and driver network, enabling them to transport their customers with a smile.

  • Domain: Lyft
  • Credentials: clientId, clientSecret

How to get credentials:

  1. Go to Lyft website
  2. Log in or create a new account
  3. Register an application
  4. Go to Application page to get your client Id and client Secret

Custom datatypes:

Datatype Description Example
Datepicker String which includes date and time
Map String which includes latitude and longitude coma separated
List Simple array
Select String with predefined values
Array Array of objects

Lyft.getAccessToken

Get accessToken

Field Type Description
clientId credentials The client id obtained from Lyft.
clientSecret credentials The client secret obtained from Lyft.
redirectUri String Your redirect URI
code String Code from the user.

Lyft.refreshAccessToken

Refresh existing accessToken

Field Type Description
clientId credentials The client id obtained from Lyft.
clientSecret credentials The client secret obtained from Lyft.
refreshToken String Refresh token received previously

Lyft.getRideTypes

Returns information about what kinds of Lyft rides you can request at a given location.

Field Type Description
accessToken String Access Token received from Lyft
coordinate Map The user’s current latitude and longitude coma separated
rideTypes Select Requested types of ride. Possible values: ‘lyft’, ‘lyft_line’, ‘lyft_plus’, ‘lyft_premier’, ‘lyft_lux’, ‘lyft_luxsuv’

Lyft.getNearbyAvailableDrivers

Returns the location of drivers near a location.

Field Type Description
accessToken String Access Token received from Lyft
coordinate Map The user’s current latitude and longitude coma separated

Lyft.estimateRideCost

Returns the estimated cost, distance, and duration of a ride between a start location and end location.

Field Type Description
accessToken String Access Token received from Lyft
startCoordinate Map The user’s starting latitude and logintude coma separated
endCoordinate Map The user’s ending latitude and logintude coma separated
rideTypes Select Requested types of ride. Possible values: ‘lyft’, ‘lyft_line’, ‘lyft_plus’, ‘lyft_premier’, ‘lyft_lux’, ‘lyft_luxsuv’

Lyft.getMe

Returns the authenticated user’s ID.

Field Type Description
accessToken String Access Token received from Lyft

Lyft.getMyRides

Returns list of user rides.

Field Type Description
accessToken String Access Token received from Lyft
startTime DatePicker Restrict to rides starting after this point in time. The earliest supported date is 2015-01-01T00:00:00Z
endTime DatePicker Restrict to rides starting before this point in time. The earliest supported date is 2015-01-01T00:00:00Z
limit Number The maximum number of rides to return. The default limit is 10 if not specified. The maximum possible value is 50.

Lyft.getMySingleRide

Returns single ride from the list of user rides.

Field Type Description
accessToken String Access Token received from Lyft
rideId String Id of the ride

Lyft.checkDriverComeTiming

Returns the estimated time in seconds it will take for the nearest driver to reach the specified location.

Field Type Description
accessToken String Access Token received from Lyft
coordinate Map The user’s current latitude nad longitude coma separated
rideTypes Select Requested types of ride. Possible values: ‘lyft’, ‘lyft_line’, ‘lyft_plus’, ‘lyft_premier’, ‘lyft_lux’, ‘lyft_luxsuv’

Lyft.requestRide

Allows your application to request a ride on behalf of the user. The user’s payment credentials on file will be charged for the ride.

Field Type Description
accessToken String Access Token received from Lyft
startCoordinate Map The user’s current latitude and longitude coma separated
destinationCoordinate Map Destination latitude and longitude coma separated
rideTypes Select Requested types of ride. Possible values: ‘lyft’, ‘lyft_line’, ‘lyft_plus’, ‘lyft_premier’, ‘lyft_lux’, ‘lyft_luxsuv’
primetimeConfirmationToken String Prime Time confirmation token

Lyft.cancelRequestedRide

Allows your application to cancel the specified ride.

Field Type Description
accessToken String Access Token received from Lyft
rideId String Id of the ride
cancelConfirmationToken String Cancel confirmation token

Lyft.updateRideDestination

Updates destination of the ride. Note that the ride state must still be active (not droppedOff or canceled), and that destinations on Lyft Line rides cannot be changed.

Field Type Description
accessToken String Access Token received from Lyft
newCoordinate Map New destination latitude nad longitude coma separated
rideId String Id of the ride
newDestinationAddress String Display address at/near the given location
דירוג: 3 - הצבעות: 1