Skip to content

Commit b5550dc

Browse files
committed
added possibility to reset basetraveltimes for the custom costs, as needed by the Green Paths 2.0 API
1 parent 34efc33 commit b5550dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/conveyal/r5/rastercost/CustomCostField.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ public HashMap<Integer, Integer> getBaseTraveltimes() {
200200

201201
public HashMap<Integer, Integer> getcustomCostAdditionalTraveltimes() {
202202
return customCostAdditionalTraveltimes;
203-
}
203+
}
204+
205+
public void resetBaseTraveltimes() {
206+
this.baseTraveltimes = new HashMap<Integer, Integer>();
207+
}
204208

205209
// convert 1-n custom cost fields to a list of custom cost fields
206210
public static List<CostField> wrapToEdgeStoreCostFieldsList(CostField... customCostFields) {

0 commit comments

Comments
 (0)