Get

Description

Obtain information from a particular position, or the last of a user or dumb device.

URL

/VERSION/positions/get.FORMAT

Available Format

KML,JSON

HTTP Method

GET

Accepted Version

1

Require

Authorization.

Headers

Parameters

Method 1 -Position

  • access_token: (Required) access_token to user resources.
  • posid: (Required) identifier of a specific position.

Method 2- User last position

  • access_token: (Required) access_token to user resources.
  • usr: (Optional) user identifier, if not indicated will result in the last position of the current user.

Method 3- Device last position

  • access_token: (Required) access_token to user resources.
  • device: (Required) device identifier which we will get the last position.

Example

https://api.topoos.com/1/positions/get.json?access_token=62f5280d-c954-4ee7-a0a8-68ff9c2810d8&usr=c0429846-8a7f-46cb-b354-526e0ac83dee

Reply

JSON example reply

{
    "id": 566819,
    "device": 1,
    "timestamp": "2012-12-05T13:11:17.408+00:00",
    "registerTime": "2012-12-05T13:17:41.10+00:00",
    "latitude": 40.953107,
    "longitude": -4.123233,
    "elevation": 0,
    "position_type": {
        "id": 2,
        "description": "TRACK_END"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 0,
    "velocity": 0,
    "track_id": 12678
}