Export the last location of one or more assets. Data is returned as either standard KML log file or as a binary GPS log file.
Note: Only log version 3 is supported for binary current location requests. Log version 3.1 adds an odometer value in XML format only.
The following are parameters that are required and optional for these requests.
Required Information | |
---|---|
Name | Description |
action | showposition |
operation | current |
format | xml, kml or binary – binary is explained below |
version | API protocol version – version 2 only |
logvers |
|
Optional Information | |
target | Identifies one particular asset according to reqtype. |
reqtype | Flag to identify the key being used to identify the asset. Acceptable values:
|
type | When using reqtype of tag or fleet this must also be specified in version 2. In version 1.x type Standard (0) is assumed. See asset types for more details. |
count | The maximum number of results to return.
Note: Only valid for xml and kml |
sortfield | Field to sort results by. Acceptable values:
Note: Only valid for xml and kml |
sortdir | Direction results are to be sorted by. Acceptable values:
Note: Only valid for xml and kml |
startrow | Can be used in combination with count to limit results to a subset. The subset will start at startrow and end at count.
Note: Only valid for xml and kml |
power | Filter results with power flag. Acceptable values:
Note: Only valid for xml and kml |
loilocation | A LOI1 name. If supplied, the distance from the asset to the center of this LOI is returned. |
loifilter | An LOI1 ID. If supplied, only assets within this LOI are returned. |
loicatfilter | An LOI1 Category ID. If supplied, only assets within this LOIs in this category are returned. |
include_loi | An LOI1 Set to ‘1’ to include the smallest GPS Zone (LOI) the asset is current in. |
locname | Filter by name of the location associated with the asset. If not used, all asset locations will be returned. |
ztrak | Indicates whether ZTrack units are returned by the current location request. Boolean data type with only two possible values: true or false. |
1 LOI means Location of Interest; called “Zone” in the GPS tools and reports found within the Ground Traffic Control web application.