SAP Sailing Analytics Webservices API Version 1.0

URL: /api/v1/regattas/{regattaname}/races/{racename}/competitordata

Description:

Gets values on one or more detail parameters for one or more competitors and a time range within the race, with configurable step width. Note that some parameters will work only if the user authenticated has the PREMIUM_LEADERBOARD_INFORMATION permission for the leaderboard queried; this is usually the case when the user has the premium role assigned.

Note furthermore that there is a limit on the number of time points for which values can be obtained by a single request. With PREMIUM_LEADERBOARD_INFORMATION permission for the leaderboard queried, the response can contain values for up to 50,000 time points; otherwise, only up to 1,000 time points can be returned by a single request.


Webservice Type: REST
Webservice Method: GET
Output format: Json
Mandatory parameters: competitorId: can occur multiple times and specifies the ID(s) of the competitor(s) for which data is to be obtained
leaderboardName: the name of the leaderboard, typically equal to the regattaname path parameter
leaderboardGroupNameOrUUID: the UUID or the name of a leaderboard group that contains the leaderboard identified by leaderboardName
detailType: can occur multiple times and specifies the type of value(s) to extract for the competitor(s). Possible values are:
  • LEG_TACKTYPE_LONGTACK_SHORTTACK
  • RACE_CURRENT_SPEED_OVER_GROUND_IN_KNOTS
  • RACE_CURRENT_COURSE_OVER_GROUND_IN_TRUE_DEGREES
  • CHART_COURSE_OVER_GROUND_TRUE_DEGREES
  • RACE_CURRENT_POSITION_LAT_DEG
  • RACE_CURRENT_POSITION_LNG_DEG
  • LEG_VELOCITY_MADE_GOOD_IN_KNOTS
  • LEG_DISTANCE_TRAVELED (unit is meters)
  • LEG_DISTANCE_TRAVELED_INCLUDING_GATE_START (unit is meters)
  • LEG_GAP_TO_LEADER_IN_SECONDS
  • CHART_WINDWARD_DISTANCE_TO_COMPETITOR_FARTHEST_AHEAD (unit in meters; basically the gap to leader)
  • RACE_IMPLIED_WIND (unit is knots)
  • RACE_RANK
  • REGATTA_RANK
  • OVERALL_RANK
  • CHART_DISTANCE_TO_START_LINE (unit is meters)
  • CHART_BEAT_ANGLE (unit is degrees)
  • CHART_ABS_TWA (unit is degrees)
  • BRAVO_RACE_HEEL_IN_DEGREES
  • BRAVO_LEG_CURRENT_HEEL_IN_DEGREES
  • BRAVO_RACE_PITCH_IN_DEGREES
  • BRAVO_LEG_CURRENT_PITCH_IN_DEGREES
  • BRAVO_RACE_CURRENT_RIDE_HEIGHT_IN_METERS
  • BRAVOEXTENDED_RACE_CURRENT_PORT_DAGGERBOARD_RAKE
  • BRAVOEXTENDED_RACE_CURRENT_STBD_DAGGERBOARD_RAKE
  • BRAVOEXTENDED_RACE_CURRENT_PORT_RUDDER_RAKE
  • BRAVOEXTENDED_RACE_CURRENT_STBD_RUDDER_RAKE
  • BRAVOEXTENDED_RACE_CURRENT_MAST_ROTATION_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_LEEWAY_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_SET
  • BRAVOEXTENDED_RACE_CURRENT_DRIFT_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_DEPTH_IN_METERS
  • BRAVOEXTENDED_RACE_CURRENT_RUDDER_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_TACK_ANGLE_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_DEFLECTOR_PERCENTAGE
  • BRAVOEXTENDED_RACE_CURRENT_DEFLECTOR_IN_MILLIMETERS
  • BRAVOEXTENDED_RACE_CURRENT_RAKE_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_TARGET_HEEL_ANGLE_IN_DEGREES
  • BRAVOEXTENDED_RACE_CURRENT_FORESTAY_LOAD
  • BRAVOEXTENDED_RACE_CURRENT_FORESTAY_PRESSURE
  • BRAVOEXTENDED_RACE_CURRENT_TARGET_BOATSPEED_PERCENTAGE
  • EXPEDITION_RACE_AWA
  • EXPEDITION_RACE_AWS
  • EXPEDITION_RACE_BARO
  • EXPEDITION_RACE_BOAT_SPEED
  • EXPEDITION_RACE_COG
  • EXPEDITION_RACE_COURSE
  • EXPEDITION_RACE_DIST_TO_PORT_LAYLINE
  • EXPEDITION_RACE_DIST_TO_STB_LAYLINE
  • EXPEDITION_RACE_DISTANCE_BELOW_LINE
  • EXPEDITION_RACE_DISTANCE_TO_COMMITTEE_BOAT
  • EXPEDITION_RACE_DISTANCE_TO_PIN
  • EXPEDITION_RACE_FORESTAY_LOAD
  • EXPEDITION_RACE_HEADING
  • EXPEDITION_RACE_JIB_CAR_PORT
  • EXPEDITION_RACE_JIB_CAR_STBD
  • EXPEDITION_RACE_LINE_SQUARE_FOR_WIND_DIRECTION
  • EXPEDITION_RACE_LOAD_P
  • EXPEDITION_RACE_LOAD_S
  • EXPEDITION_RACE_MAST_BUTT
  • EXPEDITION_RACE_RAKE
  • EXPEDITION_RACE_RATE_OF_TURN
  • EXPEDITION_RACE_RUDDER_ANGLE
  • EXPEDITION_RACE_SOG
  • EXPEDITION_RACE_TARG_BOAT_SPEED
  • EXPEDITION_RACE_TARG_TWA
  • EXPEDITION_RACE_TARGET_HEEL
  • EXPEDITION_RACE_TIME_TO_BURN_TO_COMMITTEE_BOAT
  • EXPEDITION_RACE_TIME_TO_BURN_TO_LINE
  • EXPEDITION_RACE_TIME_TO_BURN_TO_PIN
  • EXPEDITION_RACE_TIME_TO_COMMITTEE_BOAT
  • EXPEDITION_RACE_TIME_TO_GUN
  • EXPEDITION_RACE_TIME_TO_PIN
  • EXPEDITION_RACE_TIME_TO_PORT_LAYLINE
  • EXPEDITION_RACE_TIME_TO_STB_LAYLINE
  • EXPEDITION_RACE_TWA
  • EXPEDITION_RACE_TWD
  • EXPEDITION_RACE_TWS
  • EXPEDITION_RACE_VMG
  • EXPEDITION_RACE_VMG_TARG_VMG_DELTA
Optional parameters: fromtime (ISO format, such as 2014-02-14T10:12:03Z) or fromtimeasmillis (time in milliseconds)
totime (ISO format, such as 2014-02-14T10:12:03Z) or totimeasmillis (time in milliseconds)
stepSizeMillis: the duration, in milliseconds, between the time points for which to compute the values; default is 1000ms (1s)
Request method: GET
Example: http://www.sapsailing.com/sailingserver/api/v1/regattas/ESS%202018%20Barcelona/races/Race%204/competitordata?competitorId=01a01670-c82a-0133-a4ee-448a5b8481d8&competitorId=9e2f64f0-c829-0133-a4eb-448a5b8481d8&leaderboardGroupNameOrUUID=0dcf3fb5-6807-4fd4-86f8-af1757df514a&leaderboardName=ESS%202018%20Barcelona&detailType=LEG_DISTANCE_TRAVELED&detailType=RACE_RANK&fromtimeasmillis=1528987922924&totimeasmillis=1528987923980
Example Output:
      {
        "01a01670-c82a-0133-a4ee-448a5b8481d8": [
          {
            "timepoint-ms": 1528987922924,
            "values": {
              "RACE_RANK": 2,
              "LEG_DISTANCE_TRAVELED": 4103.418328471692
            }
          },
          {
            "timepoint-ms": 1528987923924,
            "values": {
              "RACE_RANK": 2,
              "LEG_DISTANCE_TRAVELED": 4115.210926626299
            }
          }
        ],
        "9e2f64f0-c829-0133-a4eb-448a5b8481d8": [
          {
            "timepoint-ms": 1528987922924,
            "values": {
              "RACE_RANK": 1,
              "LEG_DISTANCE_TRAVELED": 4431.141055488247
            }
          },
          {
            "timepoint-ms": 1528987923924,
            "values": {
              "RACE_RANK": 1,
              "LEG_DISTANCE_TRAVELED": 4442.579981511684
            }
          }
        ]
      }      
            
Back to Web Service Overview