Create and manage Lyft rides
Go
Switch branches/tags
Nothing to show
Latest commit 4a5bd56 Nov 16, 2017 @nishanths nishanths import path
Permalink
Failed to load latest commit information.
vendor import path Nov 16, 2017
.gitignore initial Nov 10, 2017
Gopkg.lock import path Nov 16, 2017
Gopkg.toml initial Nov 10, 2017
LICENSE initial Nov 10, 2017
README.md import path Nov 16, 2017
geocode.go consistent error message Nov 11, 2017
internal.go import path Nov 16, 2017
lyft.go import path Nov 16, 2017
ride.go import path Nov 16, 2017
route.go minor cleanup Nov 10, 2017

README.md

lyft

Request Lyft rides from the command line.

Install: go get -u github.com/nishanths/lyft

Lyft Line isn't available on Lyft's web application as of October 2017. This program can help you order Line rides from your computer.

Example

Create a ride using lyft ride create.

See lyft -help for more commands such as canceling rides, checking the status of rides, and saving predefined routes to use for rides.

Setup

  1. Install the program using go get -u github.com/nishanths/lyft.
  2. Set up a Google Maps Geocode API key, a Lyft client ID, and a Lyft client secret:
export GOOG_GEOCODE_KEY=<key>
export LYFT_CLIENT_ID=<key>
export LYFT_CLIENT_SECRET=<key>
  1. Begin requesting rides! See the example above. The first time you request a ride, you will need to authorize the program to order rides on your behalf. Follow the instructions printed on the command line. You will only need to do this the first time.

Create an issue if you run into trouble.

API keys

Google Maps Geocode API key:

https://developers.google.com/maps/documentation/geocoding/get-api-key

Lyft API keys:

  1. Visit https://www.lyft.com/developers/apps/new and sign in.
  2. Create a new app. Use any values for the app name and description.
  3. Enter http://localhost:90 or any unused local URL for the Redirect URL, and hit Submit.
  4. That's it. You should be able to see your Client ID and Client Secret.

Built with lyft-go.

License

BSD 3-Clause.