Merge pull request #299 from asamm/time_energy_messages

Added time and energy to response messages.
This commit is contained in:
abrensch 2021-04-25 13:41:46 +02:00 committed by GitHub
commit 94ea88fe17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -55,7 +55,9 @@ final class MessageData implements Cloneable
+ "\t" + linknodecost + "\t" + linknodecost
+ "\t" + linkinitcost + "\t" + linkinitcost
+ "\t" + wayKeyValues + "\t" + wayKeyValues
+ "\t" + ( nodeKeyValues == null ? "" : nodeKeyValues ); + "\t" + ( nodeKeyValues == null ? "" : nodeKeyValues )
+ "\t" + time
+ "\t" + energy;
} }
void add( MessageData d ) void add( MessageData d )

View file

@ -34,7 +34,7 @@ import btools.util.StringUtils;
public final class OsmTrack public final class OsmTrack
{ {
// csv-header-line // csv-header-line
private static final String MESSAGES_HEADER = "Longitude\tLatitude\tElevation\tDistance\tCostPerKm\tElevCost\tTurnCost\tNodeCost\tInitialCost\tWayTags\tNodeTags"; private static final String MESSAGES_HEADER = "Longitude\tLatitude\tElevation\tDistance\tCostPerKm\tElevCost\tTurnCost\tNodeCost\tInitialCost\tWayTags\tNodeTags\tTime\tEnergy";
public MatchedWaypoint endPoint; public MatchedWaypoint endPoint;
public long[] nogoChecksums; public long[] nogoChecksums;