Package es.situm.sdk.directions
Class DirectionsModifier
java.lang.Object
es.situm.sdk.directions.DirectionsModifier
It represents a modification applied to a graph in order to compute a @{link Route}
The basic modifier is considered to be an Action represented by a @{link Actions} options and
elements represented by a list of @{link TagModifier} instances where this action would be applied.
An example of modifier could be:
List<TagModifier> prioritizeTags = new ArrayList<>();
prioritizeTags.add(new TagModifier.Builder().tag("Public").build());
DirectionsModifier modifier = new DirectionsModifier.Builder()
.action(DirectionsModifier.Actions.PRIORITIZE)
.tags(prioritizeTags)
.build()
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumActions to be processed when computing a routestatic final classHelper class to create well formed instances of DirectionsModifier class.static enumAdditional options to keep compatibility with previous versions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the action option that will be applied with this modifier.getTags()List of elements (tags) that identify the links taking into consideration when applyingDirectionsModifieroperations.List of tags as stringstoString()
-
Method Details
-
getAction
Returns the action option that will be applied with this modifier.- Returns:
- one of
DirectionsModifier.Actionsvalue
-
getTags
List of elements (tags) that identify the links taking into consideration when applyingDirectionsModifieroperations. -
getTagsString
List of tags as strings -
toString
-