This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void findShortestPath(PrintStream ps, long startNode, long endNode) { | |
try { | |
RouterService router = Initializer.getApplicationContext().getBean(RouterService.class); | |
router.emitShortestPathKML(ps, startNode, endNode); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} | |
} | |
public void emitShortestPathKML(PrintStream ps, long keyValueA, long keyValueB) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Example of pulling data from DC Capital bikeshare to Elasticsearch in real time | |
## HTTP Poller -> XML Splitting -> Elasticsearch | |
input { | |
## pull data from Capital Bikeshare every 60 seconds | |
http_poller { | |
urls => { | |
bikeshare_dc => "https://www.capitalbikeshare.com/data/stations/bikeStations.xml" | |
} | |
request_timeout => 30 |