{"_id":"564a68fb4cd0521700523ece","initVersion":{"_id":"55773a5ba042551900b002ce","version":"1"},"project":"55773a5ba042551900b002cb","tags":[],"user":{"_id":"546d17e2eb9cfd1400dd4529","username":"","name":"World Triathlon"},"__v":1,"createdAt":"2015-07-20T16:24:00.000Z","changelog":[{"_id":"564a6980c58bef0d006206c2","update":"2015 ITU World Triathlon Hamburg Data","type":"added"},{"_id":"564a6980c58bef0d006206c1","update":"","type":"added"}],"body":"Data from the 2015 ITU World Triathlon Hamburg event has now been added to the Statistics API database.\n\nThe race was notable for the fastest ever run split in a Sprint distance format race by [Mario Mola](http://www.triathlon.org/athletes/profile/11402/mario_mola) with [13:55](http://www.triathlon.org/results/result/2015_itu_world_triathlon_hamburg/270966). To obtain this result the query can be approached in one of two ways. Firstly you could query the minimum run time and group by event.name and then find the minimum result from the list:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: YOUR_APP_KEY\\\" \\\"https://proxy.api.triathlon.org/v1/statistics/results?analysis=minimum&target_property=splits.run&filters=format,eq,Sprint&group_by=event.name\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/D9RfJDnaSyOXLYp7Asbh_hamburg-web-msj_47.jpg\",\n        \"hamburg-web-msj_47.jpg\",\n        \"1629\",\n        \"1077\",\n        \"#1f3554\",\n        \"\"\n      ],\n      \"caption\": \"Mario's run split was the fastest ever over a Sprint distance format in WTS history\"\n    }\n  ]\n}\n[/block]\nWhich returns the following list of the minimum run times from all sprint distance events (in seconds). From the result we can determine that the 835 second split in Hamburg 2015 was the fastest ever run split and can then query the results for additional information.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n   \\\"code\\\":200,\\n   \\\"status\\\":\\\"success\\\",\\n   \\\"data\\\":[\\n      {\\n         \\\"event.name\\\":\\\"2011 Lausanne ITU Elite Sprint Triathlon World Championships\\\",\\n         \\\"result\\\":864\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2012 Dextro Energy World Triathlon Hamburg\\\",\\n         \\\"result\\\":845\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2012 ITU World Triathlon Stockholm\\\",\\n         \\\"result\\\":839\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2013 ITU World Triathlon Hamburg\\\",\\n         \\\"result\\\":854\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2014 ITU World Triathlon Hamburg\\\",\\n         \\\"result\\\":849\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2014 ITU World Triathlon London\\\",\\n         \\\"result\\\":858\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2014 ITU World Triathlon Stockholm\\\",\\n         \\\"result\\\":859\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2015 ITU World Triathlon Abu Dhabi\\\",\\n         \\\"result\\\":843\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2015 ITU World Triathlon Hamburg\\\",\\n         \\\"result\\\":835\\n      },\\n      {\\n         \\\"event.name\\\":\\\"2015 ITU World Triathlon London\\\",\\n         \\\"result\\\":852\\n      }\\n   ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nAlternatively, combining two queries we can arrive at the same result. Firstly, find the minimum run split:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: YOUR_APP_KEY\\\" \\\"https://proxy.api.triathlon.org/v1/statistics/results?analysis=minimum&target_property=splits.run&filters=format,eq,Sprint\\\"\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\nWhich simply returns the minimum i.e. fastest run time.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n   \\\"code\\\":200,\\n   \\\"status\\\":\\\"success\\\",\\n   \\\"data\\\":835\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\nThen make a query to find additional information by using the run time as a filter and multiple group by requests to extract the information required (note if this time had occurred more than once then the result would simply be an array of all the times this had happened).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --header \\\"apikey: YOUR_APP_KEY\\\" \\\"https://proxy.api.triathlon.org/v1/statistics/results?analysis=minimum&target_property=position&filters=splits.run,eq,835&group_by=event.name|athlete.name|finish_time|date|splits.run\\\"\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\nAs expected this returns Mario's result from Hamburg 2015.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n   \\\"code\\\":200,\\n   \\\"status\\\":\\\"success\\\",\\n   \\\"data\\\":[  \\n      {  \\n         \\\"splits.run\\\":835,\\n         \\\"finish_time\\\":3140,\\n         \\\"athlete.name\\\":\\\"Mario Mola\\\",\\n         \\\"result\\\":3,\\n         \\\"date\\\":\\\"2015-07-18T17:46:00+0000\\\",\\n         \\\"event.name\\\":\\\"2015 ITU World Triathlon Hamburg\\\"\\n      }\\n   ]\\n}\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","slug":"hamburg-data-updates","title":"Hamburg Data Updates"}

Hamburg Data Updates


Data from the 2015 ITU World Triathlon Hamburg event has now been added to the Statistics API database. The race was notable for the fastest ever run split in a Sprint distance format race by [Mario Mola](http://www.triathlon.org/athletes/profile/11402/mario_mola) with [13:55](http://www.triathlon.org/results/result/2015_itu_world_triathlon_hamburg/270966). To obtain this result the query can be approached in one of two ways. Firstly you could query the minimum run time and group by event.name and then find the minimum result from the list: [block:code] { "codes": [ { "code": "curl --header \"apikey: YOUR_APP_KEY\" \"https://proxy.api.triathlon.org/v1/statistics/results?analysis=minimum&target_property=splits.run&filters=format,eq,Sprint&group_by=event.name", "language": "curl" } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/D9RfJDnaSyOXLYp7Asbh_hamburg-web-msj_47.jpg", "hamburg-web-msj_47.jpg", "1629", "1077", "#1f3554", "" ], "caption": "Mario's run split was the fastest ever over a Sprint distance format in WTS history" } ] } [/block] Which returns the following list of the minimum run times from all sprint distance events (in seconds). From the result we can determine that the 835 second split in Hamburg 2015 was the fastest ever run split and can then query the results for additional information. [block:code] { "codes": [ { "code": "{\n \"code\":200,\n \"status\":\"success\",\n \"data\":[\n {\n \"event.name\":\"2011 Lausanne ITU Elite Sprint Triathlon World Championships\",\n \"result\":864\n },\n {\n \"event.name\":\"2012 Dextro Energy World Triathlon Hamburg\",\n \"result\":845\n },\n {\n \"event.name\":\"2012 ITU World Triathlon Stockholm\",\n \"result\":839\n },\n {\n \"event.name\":\"2013 ITU World Triathlon Hamburg\",\n \"result\":854\n },\n {\n \"event.name\":\"2014 ITU World Triathlon Hamburg\",\n \"result\":849\n },\n {\n \"event.name\":\"2014 ITU World Triathlon London\",\n \"result\":858\n },\n {\n \"event.name\":\"2014 ITU World Triathlon Stockholm\",\n \"result\":859\n },\n {\n \"event.name\":\"2015 ITU World Triathlon Abu Dhabi\",\n \"result\":843\n },\n {\n \"event.name\":\"2015 ITU World Triathlon Hamburg\",\n \"result\":835\n },\n {\n \"event.name\":\"2015 ITU World Triathlon London\",\n \"result\":852\n }\n ]\n}", "language": "json" } ] } [/block] Alternatively, combining two queries we can arrive at the same result. Firstly, find the minimum run split: [block:code] { "codes": [ { "code": "curl --header \"apikey: YOUR_APP_KEY\" \"https://proxy.api.triathlon.org/v1/statistics/results?analysis=minimum&target_property=splits.run&filters=format,eq,Sprint\"", "language": "curl" } ] } [/block] Which simply returns the minimum i.e. fastest run time. [block:code] { "codes": [ { "code": "{ \n \"code\":200,\n \"status\":\"success\",\n \"data\":835\n}", "language": "json" } ] } [/block] Then make a query to find additional information by using the run time as a filter and multiple group by requests to extract the information required (note if this time had occurred more than once then the result would simply be an array of all the times this had happened). [block:code] { "codes": [ { "code": "curl --header \"apikey: YOUR_APP_KEY\" \"https://proxy.api.triathlon.org/v1/statistics/results?analysis=minimum&target_property=position&filters=splits.run,eq,835&group_by=event.name|athlete.name|finish_time|date|splits.run\"", "language": "curl" } ] } [/block] As expected this returns Mario's result from Hamburg 2015. [block:code] { "codes": [ { "code": "{ \n \"code\":200,\n \"status\":\"success\",\n \"data\":[ \n { \n \"splits.run\":835,\n \"finish_time\":3140,\n \"athlete.name\":\"Mario Mola\",\n \"result\":3,\n \"date\":\"2015-07-18T17:46:00+0000\",\n \"event.name\":\"2015 ITU World Triathlon Hamburg\"\n }\n ]\n}", "language": "curl" } ] } [/block]
added
2015 ITU World Triathlon Hamburg Data