Skip to content

Commit 560aaf6

Browse files
authored
Add Degrees and Driving Side to BannerText (#744)
1 parent 98926a7 commit 560aaf6

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

  • services-directions/src/main/java/com/mapbox/api/directions/v5/models

services-directions/src/main/java/com/mapbox/api/directions/v5/models/BannerText.java

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.mapbox.api.directions.v5.models;
22

33
import android.support.annotation.Nullable;
4+
45
import com.google.auto.value.AutoValue;
56
import com.google.gson.Gson;
67
import com.google.gson.TypeAdapter;
8+
import com.google.gson.annotations.SerializedName;
79
import com.mapbox.api.directions.v5.MapboxDirections;
810

911
import java.io.Serializable;
@@ -90,6 +92,28 @@ public static Builder builder() {
9092
@Nullable
9193
public abstract String modifier();
9294

95+
96+
/**
97+
* The degrees at which you will be exiting a roundabout, assuming `180` indicates
98+
* going straight through the roundabout.
99+
*
100+
* @return at which you will be exiting a roundabout
101+
* @since 3.0.0
102+
*/
103+
@Nullable
104+
public abstract Double degrees();
105+
106+
/**
107+
* A string representing which side the of the street people drive on
108+
* in that location. Can be 'left' or 'right'.
109+
*
110+
* @return String either `left` or `right`
111+
* @since 3.0.0
112+
*/
113+
@Nullable
114+
@SerializedName("driving_side")
115+
public abstract String drivingSide();
116+
93117
/**
94118
* Gson type adapter for parsing Gson to this class.
95119
*
@@ -149,6 +173,27 @@ public abstract static class Builder {
149173
* @since 3.0.0
150174
*/
151175
public abstract Builder modifier(@Nullable String modifier);
176+
177+
/**
178+
* The degrees at which you will be exiting a roundabout, assuming `180` indicates
179+
* going straight through the roundabout.
180+
*
181+
* @param degrees at which you will be exiting a roundabout
182+
* @return this builder for chaining options together
183+
* @since 3.0.0
184+
*/
185+
public abstract Builder degrees(Double degrees);
186+
187+
/**
188+
* A string representing which side the of the street people drive on in
189+
* that location. Can be 'left' or 'right'.
190+
*
191+
* @param drivingSide either `left` or `right`
192+
* @return this builder for chaining options together
193+
* @since 3.0.0
194+
*/
195+
public abstract Builder drivingSide(@Nullable String drivingSide);
196+
152197
/**
153198
* Build a new {@link BannerText} object.
154199
*

0 commit comments

Comments
 (0)