public class BicimadBikeRentalDataSource extends Object implements BikeRentalDataSource, JsonConfigurable
BikeRentalDataSource
Constructor and Description |
---|
BicimadBikeRentalDataSource() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Graph graph,
com.fasterxml.jackson.databind.JsonNode jsonNode)
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<BikeRentalStation> |
getStations() |
String |
getUrl() |
BikeRentalStation |
makeStation(com.fasterxml.jackson.databind.JsonNode node) |
void |
setUrl(String url) |
String |
toString() |
boolean |
update()
Fetch current data about bike rental stations and availability from this source.
|
public boolean update()
BikeRentalDataSource
update
in interface BikeRentalDataSource
public List<BikeRentalStation> getStations()
getStations
in interface BikeRentalDataSource
public String getUrl()
public void setUrl(String url)
public BikeRentalStation makeStation(com.fasterxml.jackson.databind.JsonNode node)
public void configure(Graph graph, com.fasterxml.jackson.databind.JsonNode jsonNode)
configure
in interface JsonConfigurable
Copyright © 2019. All rights reserved.