CSV download

This commit is contained in:
Norbert Renner 2014-05-27 10:20:17 +02:00
parent e17375adfd
commit 8827b205e5
4 changed files with 62 additions and 11 deletions

View file

@ -289,7 +289,11 @@ public final class OsmTrack
public void dumpMessages( String filename, RoutingContext rc ) throws Exception
{
BufferedWriter bw = filename == null ? null : new BufferedWriter( new FileWriter( filename ) );
writeMessages( bw, rc );
}
public void writeMessages( BufferedWriter bw, RoutingContext rc ) throws Exception
{
// csv-header-line
String header = "Longitude\tLatitude\tElevation\tDistance\tCostPerKm\tElevCost\tTurnCost";