37.0 GPS Schedule Report

37.2 Data Returned

Back to Index

The data returned can be either a CSV or XML file.

The XML returned can be 2 different structures depending on the reporttype specified.

DTD:

With a format of XML and a reporttype of 1, the data returned will be a list of locations of interest1 intersected by the given asset, with this DTD:
<!ELEMENT schedulelist1 (loiintersect*)>
<!ATTLIST schedulelist1 assetid CDATA #REQUIRED>
<!ATTLIST schedulelist1 fleet CDATA #REQUIRED>

<!ELEMENT loiintersect (loiid, name, timestamp, inout, duration)>
<!ELEMENT loiid (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT timestamp (#PCDATA)>
<!ELEMENT inout (#PCDATA)>
<!ELEMENT duration (#PCDATA)>

With a format of XML and a reporttype of 2, the data returned will be a list of assets intersected by the given location of interest1, with this DTD:

<!ELEMENT schedulelist2 (assetintersect*)>
<!ATTLIST schedulelist2 loiid CDATA #REQUIRED>
<!ATTLIST schedulelist2 name CDATA #REQUIRED>

<!ELEMENT assetintersect (assetid, fleet, timestamp, inout)>
<!ELEMENT assetid (#PCDATA)>
<!ELEMENT fleet (#PCDATA)>
<!ELEMENT timestamp (#PCDATA)>
<!ELEMENT inout (#PCDATA)>

Example Request, reporttype 1 format XML:

https://development.zonarsystems.net/interface.php?action=showposition
&operation=schedule&format=xml&customer=abc1234&starttime=1141397988
&endtime=1167258900&reporttype=1&target=22&reqtype=dbid

Example Success Reply (XML)

Example Request, reporttype 2 format XML:

https://development.zonarsystems.net/interface.php?action=showposition
&operation=schedule&format=xml&customer=abc1234&starttime=1141397988
&endtime=1141398000&reporttype=2&target=7&reqtype=dbid

Example Success Reply (XML)

Data Returned for log version 2:
XML DTD:

<!ELEMENT schedulelist (loiintersect*)>
<!ELEMENT loiintersect (asset, loi, in, out)>
<!ELEMENT asset (#PCDATA)>
<!ATTLIST asset id CDATA #REQUIRED>
<!ATTLIST asset tagid CDATA #REQUIRED>
<!ATTLIST asset exsid CDATA #REQUIRED>
<!ELEMENT loi (#PCDATA)>
<!ATTLIST loi id CDATA #REQUIRED>
<!ELEMENT in (#PCDATA)>
<!ELEMENT out (#PCDATA)>

CSV Column Format:

Asset ID,Asset,Time,IN/OUT,Zone,Time In Zone,Duration,Duration Total,Distance

Example Log version 2 (XML)

Example Log version 2 (CSV)

 

1 Location of Interest; called “Zone” in the GPS tools and reports found within the Ground Traffic Control web application.

Is this api manual documents helpful?
0 out of 0 said Yes
YesNo