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 JsonConfigurable
public boolean regionsUpdated()
VehicleRentalDataSource
regionsUpdated
in interface VehicleRentalDataSource
public boolean stationsUpdated()
VehicleRentalDataSource
stationsUpdated
in interface VehicleRentalDataSource
public List<VehicleRentalStation> getStations()
getStations
in interface VehicleRentalDataSource
public List<VehicleRentalRegion> getRegions()
getRegions
in interface VehicleRentalDataSource
public void update()
update
in interface VehicleRentalDataSource
Copyright © 2020. All rights reserved.