|
1 | 1 | package com.mapbox.api.directions.v5.models; |
2 | 2 |
|
3 | 3 | import android.support.annotation.Nullable; |
| 4 | + |
4 | 5 | import com.google.auto.value.AutoValue; |
5 | 6 | import com.google.gson.Gson; |
6 | 7 | import com.google.gson.TypeAdapter; |
| 8 | +import com.google.gson.annotations.SerializedName; |
7 | 9 | import com.mapbox.api.directions.v5.MapboxDirections; |
8 | 10 |
|
9 | 11 | import java.io.Serializable; |
@@ -90,6 +92,28 @@ public static Builder builder() { |
90 | 92 | @Nullable |
91 | 93 | public abstract String modifier(); |
92 | 94 |
|
| 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 | + |
93 | 117 | /** |
94 | 118 | * Gson type adapter for parsing Gson to this class. |
95 | 119 | * |
@@ -149,6 +173,27 @@ public abstract static class Builder { |
149 | 173 | * @since 3.0.0 |
150 | 174 | */ |
151 | 175 | 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 | + |
152 | 197 | /** |
153 | 198 | * Build a new {@link BannerText} object. |
154 | 199 | * |
|
0 commit comments