|
1 | 1 | package com.mapbox.api.directions.v5; |
2 | 2 |
|
3 | | -import androidx.annotation.IntDef; |
4 | 3 | import androidx.annotation.StringDef; |
5 | 4 |
|
6 | 5 | import java.lang.annotation.Retention; |
@@ -144,12 +143,6 @@ public final class DirectionsCriteria { |
144 | 143 | */ |
145 | 144 | public static final String ANNOTATION_CLOSURE = "closure"; |
146 | 145 |
|
147 | | - /** |
148 | | - * The tendency value conveys the changing |
149 | | - * state of traffic congestion (increasing, decreasing, constant etc). |
150 | | - */ |
151 | | - public static final String ANNOTATION_TRAFFIC_TENDENCY = "traffic_tendency"; |
152 | | - |
153 | 146 | /** |
154 | 147 | * Exclude all tolls along the returned directions route. |
155 | 148 | * |
@@ -277,36 +270,6 @@ public final class DirectionsCriteria { |
277 | 270 | */ |
278 | 271 | public static final String APPROACH_CURB = "curb"; |
279 | 272 |
|
280 | | - /*** |
281 | | - * Conveys the changing state of traffic congestion: unknown. |
282 | | - */ |
283 | | - public static final int TRAFFIC_TENDENCY_UNKNOWN = 0; |
284 | | - |
285 | | - /*** |
286 | | - * Conveys the changing state of traffic congestion: constant. |
287 | | - */ |
288 | | - public static final int TRAFFIC_TENDENCY_CONSTANT_CONGESTION = 1; |
289 | | - |
290 | | - /*** |
291 | | - * Conveys the changing state of traffic congestion: increasing. |
292 | | - */ |
293 | | - public static final int TRAFFIC_TENDENCY_INCREASING_CONGESTION = 2; |
294 | | - |
295 | | - /*** |
296 | | - * Conveys the changing state of traffic congestion: decreasing. |
297 | | - */ |
298 | | - public static final int TRAFFIC_TENDENCY_DECREASING_CONGESTION = 3; |
299 | | - |
300 | | - /*** |
301 | | - * Conveys the changing state of traffic congestion: rapidly increasing. |
302 | | - */ |
303 | | - public static final int TRAFFIC_TENDENCY_RAPIDLY_INCREASING_CONGESTION = 4; |
304 | | - |
305 | | - /*** |
306 | | - * Conveys the changing state of traffic congestion: rapidly decreasing. |
307 | | - */ |
308 | | - public static final int TRAFFIC_TENDENCY_RAPIDLY_DECREASING_CONGESTION = 5; |
309 | | - |
310 | 273 | private DirectionsCriteria() { |
311 | 274 | //not called |
312 | 275 | } |
@@ -366,8 +329,7 @@ private DirectionsCriteria() { |
366 | 329 | ANNOTATION_CONGESTION, |
367 | 330 | ANNOTATION_CONGESTION_NUMERIC, |
368 | 331 | ANNOTATION_MAXSPEED, |
369 | | - ANNOTATION_CLOSURE, |
370 | | - ANNOTATION_TRAFFIC_TENDENCY |
| 332 | + ANNOTATION_CLOSURE |
371 | 333 | }) |
372 | 334 | public @interface AnnotationCriteria { |
373 | 335 | } |
@@ -455,22 +417,4 @@ private DirectionsCriteria() { |
455 | 417 | }) |
456 | 418 | public @interface ApproachesCriteria { |
457 | 419 | } |
458 | | - |
459 | | - /** |
460 | | - * Retention policy for the traffic tendency annotations. |
461 | | - * The tendency value conveys the changing state of traffic |
462 | | - * congestion (increasing, decreasing, constant etc). New values |
463 | | - * could be introduced in the future without an API version change. |
464 | | - */ |
465 | | - @Retention(RetentionPolicy.CLASS) |
466 | | - @IntDef({ |
467 | | - TRAFFIC_TENDENCY_UNKNOWN, |
468 | | - TRAFFIC_TENDENCY_CONSTANT_CONGESTION, |
469 | | - TRAFFIC_TENDENCY_INCREASING_CONGESTION, |
470 | | - TRAFFIC_TENDENCY_DECREASING_CONGESTION, |
471 | | - TRAFFIC_TENDENCY_RAPIDLY_INCREASING_CONGESTION, |
472 | | - TRAFFIC_TENDENCY_RAPIDLY_DECREASING_CONGESTION |
473 | | - }) |
474 | | - public @interface TrafficTendencyCriteria { |
475 | | - } |
476 | 420 | } |
0 commit comments