mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-03 02:43:53 +00:00
added waypoint ID in leg output for showrace
This commit is contained in:
1 parent
072726df77
commit
a8eb81df8f
1 file changed
+2
@@ -219,7 +219,9 @@ public class ModeratorApp extends Servlet {
|
||||
for (TrackedLeg leg : trackedRace.getTrackedLegs()) {
|
||||
JSONObject jsonLeg = new JSONObject();
|
||||
jsonLeg.put("from", leg.getLeg().getFrom().getName());
|
||||
jsonLeg.put("fromwaypointid", leg.getLeg().getFrom().getId());
|
||||
jsonLeg.put("to", leg.getLeg().getTo().getName());
|
||||
jsonLeg.put("towaypointid", leg.getLeg().getTo().getId());
|
||||
try {
|
||||
jsonLeg.put("upordownwindleg", leg.isUpOrDownwindLeg(timePoint));
|
||||
} catch (NoWindException e) {
|
||||
|
||||
Reference in new issue
Block a user