Style

Style is used to configure how a CompassDirectionFormatter translates a compass direction into a String.

  • When a CompassDirectionFormatter is configured to use the short style, it uses an abbreviation of the compass direction, like “N” for north or “NE” for northeast.

  • When a CompassDirectionFormatter is configured to use the long style, it uses full descriptions of the compass direction, like “north” or “northeast.”