Skip to content

Transit details issue #12

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

Closed
Alexandru-C opened this issue Sep 14, 2022 · 1 comment
Closed

Transit details issue #12

Alexandru-C opened this issue Sep 14, 2022 · 1 comment

Comments

@Alexandru-C
Copy link

Steps to Reproduce

  1. Trying to get the transit details in travelMode transit.

The issue: The issue is in the factory Step.fromMap(Map<String, dynamic> map) method, at line 799 in directions.response.dart. At the transit named parameter it checks whether map['transit'] is null or not, but transit is not the right key to look for.

How to fix the issue: Change map['transit'] with map['transit_details'] and it will work fine.

Additional details I am using version 0.9.1 of the google_directions_api

@OlehMarch
Copy link
Member

Will be fixed in 0.10.0

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