Get_between

Description

Gets a collection of positions recorded in a date range

URL

/VERSION/positions/get_between.FORMAT

Available Format

KML,JSON

HTTP Method

GET

Accepted Version

1

Require

Authorization.

Headers

Parameters

  • access_token: (Required) access_token to user resources.
  • initdate: (Required)¬†start date, according to the ISO 8601 standard.
  • enddate: (Required)ending date, according to the ISO 8601 standard.
  • device:¬†(Optional) gets only the specified device positions. If not specified, the positions are obtained by default device. It is a required parameter when the application can access the physical devices of a user, the default option is disabled.

Example

https://api.topoos.com/1/positions/get_between.json?access_token=62f5280d-c954-4ee7-a0a8-68ff9c2810d8&initdate=1912-09-11T00%3A00%3A00.000%2B0000&enddate=2012-12-05T13%3A11%3A19.510%2B0000

Reply

JSON example reply

[{
    "id": 566793,
    "device": 1,
    "timestamp": "2012-12-04T15:08:07.867+00:00",
    "registerTime": "2012-12-04T15:14:31.250+00:00",
    "latitude": 40.953107,
    "longitude": -4.123233,
    "elevation": 0,
    "position_type": {
        "id": 1,
        "description": "TRACK_INIT"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 0,
    "velocity": 0,
    "track_id": 12675
}, {
    "id": 425560,
    "device": 1,
    "timestamp": "2012-07-03T14:01:46.700+02:00",
    "registerTime": "2012-07-03T12:02:24.400+00:00",
    "latitude": 1,
    "longitude": 1,
    "elevation": 0,
    "position_type": {
        "id": 3,
        "description": "POS"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 0,
    "velocity": 0,
    "track_id": -1
}, {
    "id": 401216,
    "device": 1,
    "timestamp": "2012-06-14T15:08:40.490+00:00",
    "registerTime": "2012-06-14T15:04:48.380+00:00",
    "latitude": 40.397977248,
    "longitude": -3.397977248,
    "elevation": 0,
    "position_type": {
        "id": 2,
        "description": "TRACK_END"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 322.74041,
    "velocity": 0,
    "track_id": 9386
}, {
    "id": 401215,
    "device": 1,
    "timestamp": "2012-06-14T15:08:40.660+00:00",
    "registerTime": "2012-06-14T15:04:47.957+00:00",
    "latitude": 40.128101178,
    "longitude": -3.128101178,
    "elevation": 0,
    "position_type": {
        "id": 3,
        "description": "POS"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 142.57058,
    "velocity": 24913.715835107,
    "track_id": 9386
}, {
    "id": 401213,
    "device": 1,
    "timestamp": "2012-06-14T15:08:39.358+00:00",
    "registerTime": "2012-06-14T15:04:47.257+00:00",
    "latitude": 40.359787673,
    "longitude": -3.359787673,
    "elevation": 0,
    "position_type": {
        "id": 1,
        "description": "TRACK_INIT"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 0,
    "velocity": 0,
    "track_id": 9386
}, {
    "id": 335736,
    "device": 1,
    "timestamp": "2012-04-10T11:11:37.962+02:00",
    "registerTime": "2012-04-11T09:24:05.37+00:00",
    "latitude": 40.370804,
    "longitude": -3.713084,
    "elevation": 0,
    "position_type": {
        "id": 10,
        "description": "TRACK_END_PASSIVE"
    },
    "accuracy": 0,
    "vaccuracy": 0,
    "bearing": 273.13471,
    "velocity": 3.56236117,
    "track_id": 7679
}]