You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
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
The text was updated successfully, but these errors were encountered: