Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subcommand for Directions API #5

Closed
perrygeo opened this issue Nov 6, 2015 · 0 comments · Fixed by #13
Closed

Add subcommand for Directions API #5

perrygeo opened this issue Nov 6, 2015 · 0 comments · Fixed by #13

Comments

@perrygeo
Copy link
Contributor

perrygeo commented Nov 6, 2015

First draft of proposed interface:

$ mbx directions --help
Usage: mbx directions [OPTIONS] WAYPOINTS...

  Calculate optimal route with turn-by-turn directions between up to 25
  waypoints.

    $ mbx directions "[-122.681032, 45.528334]" "[-122.71679, 45.525135]"

  An access token is required, see `mbx --help`.

Options:
  --profile [mapbox.driving|mapbox.walking|mapbox.cycling]
                                  Mapbox direction profile id
  --alternatives / --no-alternatives
                                  Generate alternative routes?
  --instructions [text|html]      Format for route instructions
  --geometry [geojson|polyline|false]
                                  Geometry encoding
  --steps / --no-steps            Include steps in the response
  --geojson / --no-geojson        Return geojson feature collection (default:
                                  full response json)
  -o, --output TEXT               Save output to a file.
  --help                          Show this message and exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant