-
Notifications
You must be signed in to change notification settings - Fork 120
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
[WIP] Add roundaboutExits param to MapboxDirections #562
Conversation
Added roundaboutExits param to MapboxDirections. Still need to add fixtures, test and check param description
* @return true it is possible to exit on the roundabout {@link #setRoundaboutExits(Boolean)}. | ||
* @since 2.2.4 | ||
*/ | ||
public Boolean isRoundaboutExits() { |
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.
Can we change this to something like allowsRoundaboutExits()
?
@@ -591,6 +604,14 @@ public T setBaseUrl(String baseUrl) { | |||
} | |||
|
|||
/** | |||
* @return true it is possible to exit on the roundabout {@link #setRoundaboutExits(Boolean)}. |
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.
A more descriptive doc for this given the below would be "return true if you enabled additional instructions while exiting rotaries and roundabouts."
@@ -373,6 +375,17 @@ public T setLanguage(String language) { | |||
return (T) this; | |||
} | |||
|
|||
/** | |||
* Optionally, call if you'd like to specify if exit on a roundabout is allowed. |
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.
"Optionally, set this to true if you want to enable instructions while exiting roundabouts and rotaries."
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.
Changes look good 🚢
Added roundaboutExits param to MapboxDirections.
Still need:
cc: @zugaldia @cammace