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 fare to directions response #72

Closed
patrickmscott opened this issue Jun 20, 2016 · 4 comments
Closed

Add fare to directions response #72

patrickmscott opened this issue Jun 20, 2016 · 4 comments

Comments

@patrickmscott
Copy link

Based on the documentation at https://developers.google.com/maps/documentation/directions/intro#DirectionsResponseElements there is a fare option returned in the directions request for transit if all legs contain fare information.

@domesticmouse
Copy link
Contributor

Please feel free to create a Pull Request to implement this change =)

@domesticmouse
Copy link
Contributor

I've just committed some code that should handle Fare information. If you can supply a query that returns Fare information I'll add a matching test. Thanks!

@patrickmscott
Copy link
Author

Origin: 35.7777111, -78.625354
Destination: 35.7826242, -78.6547025
Mode: 'transit'

That should give you back transit directions with a fare.

@domesticmouse
Copy link
Contributor

Thanks, tests are in. Please note, I changed the API for fares while testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants