public class GenericGbfsService extends Object implements VehicleRentalDataSource, JsonConfigurable
| Constructor and Description |
|---|
GenericGbfsService() |
GenericGbfsService(String headerName,
String headerValue,
String language) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Graph graph,
com.fasterxml.jackson.databind.JsonNode config)
Note that the JSON being passed in here is for configuration of the OTP component, it's completely separate
from the JSON coming in from the update source.
|
List<VehicleRentalRegion> |
getRegions() |
List<VehicleRentalStation> |
getStations() |
boolean |
regionsUpdated()
Returns true if there might have been changes to the regions
|
boolean |
stationsUpdated()
Returns true if there might have been changes to the stations
|
String |
toString() |
void |
update() |
public void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode config)
configure in interface JsonConfigurablepublic boolean regionsUpdated()
VehicleRentalDataSourceregionsUpdated in interface VehicleRentalDataSourcepublic boolean stationsUpdated()
VehicleRentalDataSourcestationsUpdated in interface VehicleRentalDataSourcepublic List<VehicleRentalStation> getStations()
getStations in interface VehicleRentalDataSourcepublic List<VehicleRentalRegion> getRegions()
getRegions in interface VehicleRentalDataSourcepublic void update()
update in interface VehicleRentalDataSourceCopyright © 2020. All rights reserved.