Skip to content
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

Merged
merged 9 commits into from
Sep 14, 2017

Conversation

osanchik
Copy link
Contributor

@osanchik osanchik commented Sep 14, 2017

Added roundaboutExits param to MapboxDirections.

Still need:

  • to generate fixtures + write test
  • check if param description is correct.

cc: @zugaldia @cammace

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() {

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)}.
Copy link

@ericrwolfe ericrwolfe Sep 14, 2017

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.

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."

Copy link

@ericrwolfe ericrwolfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good 🚢

@zugaldia zugaldia merged commit 31a2e90 into master Sep 14, 2017
@zugaldia zugaldia deleted the 558-osana-roundaboutExits branch September 14, 2017 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants