-
Notifications
You must be signed in to change notification settings - Fork 307
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
MapboxDirections.swift v0.12.0, OSRMTextInstructions v0.5.0 #828
Conversation
Also use the “nationalized current locale” for consistency.
Tests are crashing on CI but not locally:
|
I think this is failing because the encoded |
Ok now getting an error here: This line looks incorrect to me: https://github.com/mapbox/MapboxDirections.swift/blob/master/MapboxDirections/MBRouteLeg.swift#L101 We should not be decoding an array of numbers. |
Something is not right, even after updating |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be deeper issues here.
That line is correct. CongestionLevel is an enumeration, so it’s represented in the archive as a number, because archives have a much more limited set of types (only slightly more flexible than JSON). |
@bsudekum @1ec5 the only thing that comes to mind regarding this issue is possibly mapbox/mapbox-directions-swift#204? That bug could cause |
My bad, I was testing MapboxDirections.swift locally but not the navigation SDK. 😳
Thanks, I can confirm that building with MapboxDirections.swift on master (including mapbox/mapbox-directions-swift#204) does fix the issue. Let’s publish a patch release of MapboxDirections.swift with that fix: mapbox/mapbox-directions-swift#205. |
The test failures should be resolved now, @bsudekum. |
Also use the “nationalized current locale” for consistency.
Fixes #821. Depends on Project-OSRM/osrm-text-instructions.swift#51.
/cc @bsudekum @frederoni @JThramer