25.0 Export a Path

25.2c XML/JSON Data Returned

Back to Index

Version 3 – DTD

<!ELEMENT pathevents (asset*)>
<!ATTLIST pathevents ver CDATA #REQUIRED>
<!ATTLIST pathevents assetcount CDATA #REQUIRED>

<!ELEMENT asset (event*)>
<!ATTLIST asset id CDATA #REQUIRED>
<!ATTLIST asset eventcount CDATA #REQUIRED>

<!ELEMENT event (#PCDATA)>
<!ATTLIST event lat CDATA #REQUIRED>
<!ATTLIST event long CDATA #REQUIRED>
<!ATTLIST event time CDATA #REQUIRED>
<!ATTLIST event speed CDATA #REQUIRED>
<!ATTLIST event heading CDATA #REQUIRED>
<!ATTLIST event reason CDATA #REQUIRED>
<!ATTLIST event distance_traveled CDATA #REQUIRED>

WITH JSON ADD

<!ATTLIST event odometer CDATA #REQUIRED>
<!ATTLIST event loadts CDATA #REQUIRED>

Version 3.2 XML results – DTD

<!ELEMENT pathevents (asset*)>
<!ATTLIST pathevents ver CDATA #REQUIRED>
<!ATTLIST pathevents assetcount CDATA #REQUIRED>

<!ELEMENT asset (event*)>
<!ATTLIST asset id CDATA #REQUIRED>
<!ATTLIST asset eventcount CDATA #REQUIRED>

<!ELEMENT event (#PCDATA)>
<!ATTLIST event lat CDATA #REQUIRED>
<!ATTLIST event long CDATA #REQUIRED>
<!ATTLIST event time CDATA #REQUIRED>
<!ATTLIST event speed CDATA #REQUIRED>
<!ATTLIST event heading CDATA #REQUIRED>
<!ATTLIST event reason CDATA #REQUIRED>
<!ATTLIST event distance_traveled CDATA #REQUIRED>
<!ATTLIST event odometer CDATA #REQUIRED>
<!ATTLIST event loadts CDATA #REQUIRED>
<!ATTLIST event accel CDATA #REQUIRED>
<!ATTLIST event status CDATA #REQUIRED>
<!ATTLIST event fuel_counter CDATA #REQUIRED>
<!ATTLIST event fuel_units CDATA #REQUIRED>

Version 3.3 XML includes an additional attribute in the event element named zone

Version 3.4 XML includes an additional attribute in the asset element named exsid

Version 3.6 XML results – DTD

<!ELEMENT pathevents (asset*)>
<!ATTLIST pathevents ver CDATA #REQUIRED>
<!ATTLIST pathevents assetcount CDATA #REQUIRED>

<!ELEMENT asset (event*)>
<!ATTLIST asset id CDATA #REQUIRED>
<!ATTLIST asset eventcount CDATA #REQUIRED>

<!ELEMENT event (#PCDATA)>
<!ATTLIST event lat CDATA #REQUIRED>
<!ATTLIST event long CDATA #REQUIRED>
<!ATTLIST event time CDATA #REQUIRED>
<!ATTLIST event speed CDATA #REQUIRED>
<!ATTLIST event heading CDATA #REQUIRED>
<!ATTLIST event reasons CDATA #REQUIRED>
<!ATTLIST event distance_traveled CDATA #REQUIRED>
<!ATTLIST event odometer CDATA #REQUIRED>
<!ATTLIST event loadts CDATA #REQUIRED>
<!ATTLIST event accel CDATA #REQUIRED>
<!ATTLIST event status CDATA #REQUIRED>
<!ATTLIST event fuel_counter CDATA #REQUIRED>
<!ATTLIST event fuel_units CDATA #REQUIRED>
<!ATTLIST event address CDATA #REQUIRED>
<!ATTLIST event zone CDATA #REQUIRED>
<!ATTLIST event air_temp CDATA #REQUIRED>
<!ATTLIST event avg_rpm CDATA #REQUIRED>
<!ATTLIST event avg_load CDATA #REQUIRED>
<!ATTLIST event outside_pressure CDATA #REQUIRED>
<!ATTLIST event peak_rpm CDATA #REQUIRED>
<!ATTLIST event average_torque CDATA #REQUIRED>
<!ATTLIST event boost_pressure CDATA #REQUIRED>
<!ATTLIST event ffilter_dpressure CDATA #REQUIRED>
<!ATTLIST event afilter_dpressure CDATA #REQUIRED>
<!ATTLIST event dpf_dpressure CDATA #REQUIRED>
<!ATTLIST event regen_status CDATA #REQUIRED>

Version 3.7 XML is the same as version 3.6

Version 3.8 XML results – DTD

<!ELEMENT pathevents (asset*)>
<!ATTLIST pathevents ver CDATA #REQUIRED>
<!ATTLIST pathevents assetcount CDATA #REQUIRED>

<!ELEMENT asset (event*)>
<!ATTLIST asset id CDATA #REQUIRED>
<!ATTLIST asset eventcount CDATA #REQUIRED>

<!ELEMENT event (#PCDATA)>
<!ATTLIST event lat CDATA #REQUIRED>
<!ATTLIST event long CDATA #REQUIRED>
<!ATTLIST event time CDATA #REQUIRED>
<!ATTLIST event speed CDATA #REQUIRED>
<!ATTLIST event heading CDATA #REQUIRED>
<!ATTLIST event reasons CDATA #REQUIRED>
<!ATTLIST event distance_traveled CDATA #REQUIRED>
<!ATTLIST event odometer CDATA #REQUIRED>
<!ATTLIST event loadts CDATA #REQUIRED>
<!ATTLIST event accel CDATA #REQUIRED>
<!ATTLIST event status CDATA #REQUIRED>
<!ATTLIST event fuel_counter CDATA #REQUIRED>
<!ATTLIST event fuel_units CDATA #REQUIRED>
<!ATTLIST event address CDATA #REQUIRED>
<!ATTLIST event source CDATA #REQUIRED>

Reason Codes

The reason attribute specifies one or more log reason codes as detailed below.

XML/JSON Reason Codes
Code Meaning
0 Reserved and invalid.
1 Input 1 state change
2 Input 2 state change
3 Input 3 state change
4 Input 4 state change
5 Input 5 state change
6 Cold Start
7 Power Off
8 Geofence
9 Motion Stop
10 Motion Start
11 Standard Event
12 Power On
13 Panic – only with logvers 3.8

 

Example XML Request

https://development.zonarsystems.net/interface.php?action=showposition
&operation=path&reqtype=dbid&target=191&version=2&starttime=1189321200
&endtime=1189493940&logvers=3&format=xml

Example JSON Request

https://development.zonarsystems.net/interface.php?action=showposition
&operation=path&reqtype=dbid&target=191&version=2&starttime=1189321200
&endtime=1189493940&logvers=3&format=json

Example XML Request logvers=3.2

https://development.zonarsystems.net/interface.php?action=showposition
&operation=path&reqtype=dbid&target=8&type=Standard&version=2&starttime=1274710864
&endtime=1274743009&logvers=3.2&format=xml

Example XML Success Reply

Example JSON Success Reply

Example logvers=3.2 XML Success Reply

Example logvers=3.3 XML Success Reply

Example logvers=3.4 XML Success Reply

Example logvers=3.6/3.7 XML Success Reply

Example logvers=3.8 XML Success Reply

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