Routes GetCorrected - TrainingPeaks/PartnersAPI GitHub Wiki

Routes - Corrected

Returns a single route with correction data.

  • Resource endpoint /v2/routes/{route-id}/corrected
  • HTTP Method: GET
  • OAuth Scope Required: routes:read

Example:

Testing:
https://api.sandbox.trainingpeaks.com/v2/routes/143223/corrected

Production:
https://api.trainingpeaks.com/v2/routes/143223/corrected

Returns:

A single Corrected Route object.

Example:

{
"RouteData": {
  "LatMid": 49.252217659512127,
  "LonMid": -123.11094455960645,
  "PointsX10": [
    -1224,
    1043,
    -221,
    -303,
    1050,
    -251,
    466,
    1055,
    -272,
    1580,
    1061,
    -307,
    2344,
    1063,
    -327,
    2532,
    1063,
    -325,
    2609,
    1063,
    -245,
    2616,
    1063,
    61,
    2545,
    1063,
    142,
    2516,
    1063,
    148,
    1696,
    1060,
    179,
    1026,
    1058,
    199,
    859,
    1057,
    191,
    777,
    1057,
    30,
    732,
    1056,
    -581,
    714,
    1056,
    -762,
    590,
    1056,
    -790,
    29,
    1055,
    -802,
    -643,
    1053,
    -799,
    -1203,
    1050,
    -781,
    -1321,
    1049,
    -745,
    -1301,
    1047,
    -489,
    -1263,
    1039,
    450,
    -1249,
    1037,
    698,
    -1210,
    1036,
    760,
    -1245,
    1035,
    802,
    -1246,
    1034,
    660,
    -1210,
    1033,
    720,
    -1222,
    1032,
    777,
    -1265,
    1031,
    799,
    -1418,
    1029,
    774,
    -1920,
    1023,
    783,
    -2410,
    1017,
    800,
    -2536,
    1016,
    798,
    -2609,
    1016,
    716,
    -2616,
    1016,
    402,
    -2470,
    1017,
    314,
    -1803,
    1022,
    283,
    -197,
    1040,
    235,
    467,
    1048,
    209,
    638,
    1050,
    209,
    740,
    1051,
    294,
    772,
    1055,
    613,
    794,
    1056,
    692
  ]
},
"Id": 2,
"FileHash": "eb3fa47b-da04-e380-50bf-56648698b334",
"IsDefault": true,
"WarningMessage": null,
"OwnerPersonId": 1234567,
"Name": "Mountain Trail",
"FileName": "mtntrail.gpx",
"Description": "An awesome mountain trail.",
"ApplyCorrections": true
}