Login

Events


Event

Get Event details

GET https://loggator.com/api/events/:event_id.(json|js)

The API supports JSONP callbacks when used with .js

Response
{
   "event":{
      "end_date":"2014-04-19T15:30:00Z",
      "id":84,
      "map_id":81,
      "name":"Tiotrening3 Skidstugebladet e.m",
      "publish_date":"2014-04-19T13:30:00Z",
      "slug":"KwVC1g3UwBMWzdiQ",
      "start_date":"2014-04-19T13:30:00Z"
   },
   "competitors":[
      {
         "device_id":102,
         "marker_color":"f0ffff",
         "name":"Ane Sofie N\u00e6ss Bj\u00f8rgul",
         "shortname":"Ane",
         "start_time":"2014-04-19T13:30:00Z"
      },
      {
         "device_id":101,
         "marker_color":"ffd700",
         "name":"Jan Granstedt",
         "shortname":"Jan",
         "start_time":"2014-04-19T13:30:00Z"
      }
      ...
   ],
   "tracks":"https://loggator.com/api/events/KwVC1g3UwBMWzdiQ/points",
   "map":{
      "url":"https://d1die33kgxnq4e.cloudfront.net/uploads/map/overlay/427b8505df27e747a6538ff4/Skidstugebladet.jpg",
      "width":2339,
      "height":1654,
      "coordinates":{
         "bottomLeft":{
            "lat":57.654542394839474,
            "lng":15.004151983828603
         },
         "bottomRight":{
            "lat":57.65308033132869,
            "lng":15.047986779155508
         },
         "topRight":{
            "lat":57.66976099534961,
            "lng":15.049931235477846
         },
         "topLeft":{
            "lat":57.6712230588604,
            "lng":15.006096440150941
         }
      },
      "tiles":"https://d1die33kgxnq4e.cloudfront.net/tiles/427b8505df27e747a6538ff4/{z}/{x}/{y}.png"
   }
}

Event Tracks

Request

GET https://loggator.com/api/events/:event_id/points.(json|js)

The API supports JSONP callbacks when used with .js

Response
{"data":"100,57.901355,14.720502,251.7,1397896489;100,57.901199,14.720682,250.4,1397896494;....}

The data field is a semicolon separated array of points.

{device_id},{latitude},{longitude},{timestamp};{...}

Last updated on 24th Jan 2023