Skip to content

Commit 085b02a

Browse files
authored
Revert experimental EV routing request and response parameters (e1b3f2f) (#1395)
1 parent 9ed67d7 commit 085b02a

12 files changed

Lines changed: 13 additions & 946 deletions

File tree

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

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -417,47 +417,4 @@ private DirectionsCriteria() {
417417
})
418418
public @interface ApproachesCriteria {
419419
}
420-
421-
// EXPERIMENTAL
422-
/**
423-
* Object representing experimental value.
424-
* <p>
425-
* All available experimental values are subject to change at any time.
426-
*/
427-
public static final String EXPERIMENTAL_ANNOTATION_STATE_OF_CHARGE = "state_of_charge";
428-
429-
/**
430-
* Object representing experimental value.
431-
* <p>
432-
* All available experimental values are subject to change at any time.
433-
*/
434-
public static final String EXPERIMENTAL_ENGINE_ELECTRIC = "electric";
435-
436-
/**
437-
* Object representing experimental value.
438-
* <p>
439-
* All available experimental values are subject to change at any time.
440-
*/
441-
public static final String EXPERIMENTAL_CONNECTOR_TYPE_CCS_COMBO_TYPE1 = "ccs_combo_type1";
442-
443-
/**
444-
* Object representing experimental value.
445-
* <p>
446-
* All available experimental values are subject to change at any time.
447-
*/
448-
public static final String EXPERIMENTAL_CONNECTOR_TYPE_CCS_COMBO_TYPE2 = "ccs_combo_type2";
449-
450-
/**
451-
* Object representing experimental value.
452-
* <p>
453-
* All available experimental values are subject to change at any time.
454-
*/
455-
public static final String EXPERIMENTAL_CONNECTOR_TYPE_TESLA = "tesla";
456-
457-
/**
458-
* Object representing experimental value.
459-
* <p>
460-
* All available experimental values are subject to change at any time.
461-
*/
462-
public static final String EXPERIMENTAL_CONNECTOR_TYPE_MENNEKES_TYPE2 = "mennekes_type2";
463420
}

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

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,6 @@ public Point location() {
6060
@Nullable
6161
public abstract Double distance();
6262

63-
/**
64-
* Object representing experimental value.
65-
* <p>
66-
* All available experimental values are subject to change at any time.
67-
*/
68-
@SerializedName("metadata")
69-
@Nullable
70-
public abstract ExperimentalWaypointMetadata experimentalMetadata();
71-
7263
/**
7364
* Convert the current {@link DirectionsWaypoint} to its builder holding the currently assigned
7465
* values. This allows you to modify a single property and then rebuild the object resulting in
@@ -147,16 +138,6 @@ public abstract static class Builder {
147138
@NonNull
148139
public abstract Builder distance(@Nullable Double distance);
149140

150-
/**
151-
* Object representing experimental value.
152-
* <p>
153-
* All available experimental values are subject to change at any time.
154-
*
155-
* @param metadata metadata
156-
*/
157-
@NonNull
158-
public abstract Builder experimentalMetadata(@Nullable ExperimentalWaypointMetadata metadata);
159-
160141
/**
161142
* Build a new {@link DirectionsWaypoint} object.
162143
*

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

Lines changed: 0 additions & 190 deletions
This file was deleted.

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

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

3-
import androidx.annotation.NonNull;
43
import androidx.annotation.Nullable;
54
import com.google.auto.value.AutoValue;
65
import com.google.gson.Gson;
@@ -93,15 +92,6 @@ public static Builder builder() {
9392
@SerializedName("congestion_numeric")
9493
public abstract List<Integer> congestionNumeric();
9594

96-
/**
97-
* Object representing experimental value.
98-
* <p>
99-
* All available experimental values are subject to change at any time.
100-
*/
101-
@Nullable
102-
@SerializedName("state_of_charge")
103-
public abstract List<Integer> experimentalStateOfCharge();
104-
10595
/**
10696
* Convert the current {@link LegAnnotation} to its builder holding the currently assigned
10797
* values. This allows you to modify a single property and then rebuild the object resulting in
@@ -206,17 +196,6 @@ public abstract static class Builder {
206196
*/
207197
public abstract Builder congestionNumeric(@Nullable List<Integer> congestionNumeric);
208198

209-
/**
210-
* Object representing experimental value.
211-
* <p>
212-
* All available experimental values are subject to change at any time.
213-
*
214-
* @param experimentalStateOfCharge experimentalStateOfCharge
215-
*/
216-
@NonNull
217-
public abstract Builder experimentalStateOfCharge(
218-
@Nullable List<Integer> experimentalStateOfCharge);
219-
220199
/**
221200
* Build a new {@link LegAnnotation} object.
222201
*

0 commit comments

Comments
 (0)