Closed zabuTNT closed 3 years ago
Find the issue, it seems that you have to use "network" in the updater, but they miss this in the documentation:
// Each updater can be assigned a unique network ID in the configuration to prevent returning bikes at
// stations for another network. TODO shouldn't we give each updater a unique network ID by default?
String networkName = config.path("network").asText();
} else if (sourceType.equals("gbfs")) {
source = new GbfsBikeRentalDataSource(networkName);
}
and so networkName is alway GBFS:
if (networkName != null && !networkName.isEmpty()) {
this.networkName = networkName;
} else {
this.networkName = "GBFS";
}
In order to improve the bikesharing we have to modify otp to register the region of a bikesharing station. Because when you pickup a bike with an operator you cannot do a dropoff to another operator.
To do this we have to:
1) get the bike network from GBFS
2) set the bike network in GBFS mode, it seems that this is not done, otherwise this should work:
BikeRentalUpdater.java
RentABikeAbstractEdge.java