{
  "opencollection": "1.0.0",
  "info": {
    "name": "Authentication Admin Location API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Location",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Latest locations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.skedulo.com/auth/location/latest",
            "params": [
              {
                "name": "resource_ids",
                "value": "",
                "type": "query",
                "description": "Comma separated resourceIds"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "The latest locations endpoint returns information about the **resource's** latest location. It is a map from resourceId to latest location.\n"
        },
        {
          "info": {
            "name": "Location history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.skedulo.com/auth/location/history",
            "params": [
              {
                "name": "resource_id",
                "value": "",
                "type": "query",
                "description": "Identifier of a resource"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Start time"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "End Time"
              },
              {
                "name": "accuracy",
                "value": "",
                "type": "query",
                "description": "All points returned will have an accuracy of at least the number given. If this parameter is not provided the default value is 100. To return all points use an empty string."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "The Location history end point allows you to retrieve the location history for a resource.\nThe default limit is 100 results.\n"
        },
        {
          "info": {
            "name": "Location Update",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.skedulo.com/auth/location/update",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "The location update endpoint allows one or more position updates to be provided indicating a resource's location.\n\nThe resource is determined by the Java Web Token provided. It is not possible for users other than the logged in user to update a resources position.\n"
        },
        {
          "info": {
            "name": "Locate resources with a set distance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.skedulo.com/auth/location/resources_within_distance",
            "params": [
              {
                "name": "lat",
                "value": "",
                "type": "query",
                "description": "The latitude (degrees).  This should be in decimal format, ie. \"DDD.DDDD\" not degrees and minutes.\n"
              },
              {
                "name": "lng",
                "value": "",
                "type": "query",
                "description": "The longitude of the position (degrees).  This should be in decimal format, ie. \"DDD.DDDD\" not degrees and minutes.\n"
              },
              {
                "name": "distance",
                "value": "",
                "type": "query",
                "description": "The distance (metres) to query for resources.  Note that the accuracy of the resources location is not considered when making this query."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Only consider points after this time."
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Only consider points before this time."
              },
              {
                "name": "accuracy",
                "value": "",
                "type": "query",
                "description": "Ignores any points that have an accuracy greater than the number given. If this parameter is not provided the default value is 100. To return all points use an empty string."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Locate all resources within a set distance of a specified location."
        }
      ]
    }
  ],
  "bundled": true
}