Class DirectionsModifier


  • public class DirectionsModifier
    extends Object
    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()