File tree 1 file changed +9
-1
lines changed
src/main/java/org/opentripplanner/updater/vehicle_rental
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ public class VehicleRentalUpdater extends PollingGraphUpdater {
54
54
private StreetSplitter splitter ;
55
55
56
56
private String network ;
57
+
58
+ private String headerName ;
59
+ private String headerValue ;
60
+ private String language ;
57
61
58
62
private VehicleRentalStationService service ;
59
63
@@ -77,11 +81,15 @@ protected void runPolling() {
77
81
@ Override
78
82
protected void configurePolling (Graph graph , JsonNode config ) throws Exception {
79
83
network = config .path ("network" ).asText ();
84
+ headerName = config .has ("headerName" ) ? config .path ("headerName" ).asText () : null ;
85
+ headerValue = config .has ("headerValue" ) ? config .path ("headerValue" ).asText () : null ;
86
+ language = config .has ("language" ) ? config .path ("language" ).asText () : "en" ;
87
+
80
88
VehicleRentalDataSource source = null ;
81
89
String sourceType = config .path ("sourceType" ).asText ();
82
90
if (sourceType != null ) {
83
91
if (sourceType .equals ("gbfs" )) {
84
- source = new GenericGbfsService ();
92
+ source = new GenericGbfsService (headerName , headerValue , language );
85
93
}
86
94
}
87
95
You can’t perform that action at this time.
0 commit comments