-
Notifications
You must be signed in to change notification settings - Fork 313
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
Integrated new directions API fields with the tertiary instruction and lane indications #1514
Merged
vincethecoder
merged 57 commits into
master
from
navigation/tertiary_instructions_lane_update
Jul 17, 2018
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
352f70b
Updated cartfile file with then branch off Directions
vincethecoder c73c2a3
Changes made to accommodate the new API changes made in instructions …
vincethecoder f7e88a1
Filtered instructions for visual instruction components to facilitate…
vincethecoder 61287aa
Updates Lane tests upon changes made in both lane and lanes views.
vincethecoder 18be61f
Added a new test for another maneuver.
vincethecoder e3d839d
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder 3a3fc0d
Updated podspec with directions then branch.
vincethecoder 966ec8a
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder 4f450cb
Updates to make routecontroller a class property. Removed the extra c…
vincethecoder 409e2fa
Accommodates multiple lane banner instructions.
vincethecoder 37018f8
[Update] Accommodates multiple lane banner instructions.
vincethecoder d8a0234
Updates to use visualInstructionIndex for visual instructions. Refact…
vincethecoder 7892bff
Updated podspec to point to then branch.
vincethecoder fa9f08b
Updates to use a published MapboxDirections.swift dependency
vincethecoder fa1b32c
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder bff3b2f
Fixed issue where component was not being stored and looked up by sam…
vincethecoder 560c8ba
Removed poorly composed unit test for cache key for exit label.
vincethecoder 0bf61ed
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder 6c8806e
Updated directions swift with latest changes.
vincethecoder f074bdd
WIP - added a placeholder to extract critical hash as a property on g…
vincethecoder 2ebd13b
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder fb56051
Extracted the critical hash logic into static functions within the Ex…
vincethecoder 6dc222c
Ensures both the lane view and then banner do not appear at the same …
vincethecoder 67f0ab5
Added a note to indicate the purpose of the conditional statement for…
vincethecoder a1d71e4
1514 - Modifications to update lanes and next banner views to be hidd…
vincethecoder b00f946
Added a new visual instruction extension to detect instructions with …
vincethecoder bdebc16
[GH-1514] Fixed tautology. Deleted unwarranted function to update the…
vincethecoder abdb380
[GH-1514] - Updated next banner view to detect tertiary instructions …
vincethecoder 8b13242
[GH-1514] - Updated lanes view to detect tertiary instructions with l…
vincethecoder 8f36366
[GH-1514] - Modified instructions banner view signature to accept a n…
vincethecoder a241dbb
[GH-1514] - Modified to reflect the new (non-required) field, navigat…
vincethecoder 5e3c16d
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder d555b9a
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder 5dcc682
Merge branch 'master' into navigation/tertiary_instructions_lane_update
vincethecoder d755726
[GH-1532] - changes to update the lanes view and next banner view onl…
vincethecoder f08eb8e
[GH-1514] - points to the master branch of MapboxDirections.swift
vincethecoder 63af724
[GH-1514] - points to the master branch of MapboxDirections.swift
vincethecoder 1dd33da
[GH-1514] - Minor clean up after code refactor.
vincethecoder 76cb369
[GH-1514] - No need to check for distance along step at this point.
vincethecoder a2c45ab
[GH-1514] - Refactored method signature.
vincethecoder 6b1be17
[GH-1514] - Minor refactor
vincethecoder 291ef60
[GH-1514] - Revised the signature for the updating the visual instruc…
vincethecoder 6af14a8
[GH-1514] - Fixed broken test cases.
vincethecoder 0e25212
[GH-1514] - Revised podspec to use MapboxDirections.swift's master br…
vincethecoder ba701e6
[GH-1514] - Updated file with the recently published version of Mapbo…
vincethecoder b6fdc38
Dont hardcode maneuver view to primary instruction
436889c
Merge branch 'master' into navigation/tertiary_instructions_lane_update
4ada71c
right
890f28f
[GH-1514] - Updates to change log to reflect changes to update instru…
vincethecoder feaf4d9
[GH-1514] - Exposed update(for:) functions to Objective-C. Minor refa…
vincethecoder 13f2d71
Merge branch 'navigation/tertiary_instructions_lane_update' of github…
vincethecoder 27f91a2
[GH-1514] - Updated function with objective-c friendly signature.
vincethecoder 901e229
[GH-1514] - Updated the change log with a more concise description fo…
vincethecoder 11902ca
[GH-1514] - Updated function with objective-c friendly signature.
vincethecoder 6461783
[GH-1514] - Added documentation for the critical hash function for bo…
vincethecoder a117366
[GH-1514] - Added the missing documentation in the declared class pro…
vincethecoder 00e211a
[GH-1514] - Minor refactor.
vincethecoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This can be written more succinctly as:
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.
guard instruction.components.contains(where: { $0 is VisualInstructionComponent }) else { return false }
😏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.
@1ec5 Indeed that is succinct. However, for the purpose of this function scope, we need the variable and also an early exit if it's empty. Essentially, we need the contents of
textComponent
to iterate at this linehttps://github.com/mapbox/mapbox-navigation-ios/pull/1514/files/13f2d71321b7d5e320721e611c983e6411a2d904#diff-af48d70309ee195e34cc5e6cc6b27caaR173