Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:sidebar:remoteapi:apiref:events:get [23/04/2018 14:58]
stan [0x80 flag]
en:sidebar:remoteapi:apiref:events:get [12/01/2022 12:00] (current)
mani 0x8 flag describe
Line 15: Line 15:
      ...      ...
        }        }
-</​code>​ 
- 
-By index: 
- 
-<code javascript>​ 
-svc=events/​get&​params={"​selector":​[ 
-     { 
- "​type":<​text>,​ 
- "​expr":<​text>,​ 
- "​indexFrom":<​uint>,​ 
- "​indexTo":<​uint>,​ 
- "​detalization":<​uint>,​ 
- "​filter1":<​uint>​ 
-     }, 
-     ... 
-       ]} 
 </​code>​ </​code>​
  
Line 49: Line 33:
 | 0x2 | Specified detector data | | 0x2 | Specified detector data |
 | 0x4 | User parameters (those which user stated for this event) | | 0x4 | User parameters (those which user stated for this event) |
 +| 0x8 | Track data in trips |
 | 0x10 | Full JSON. Every detector treats it its own way | | 0x10 | Full JSON. Every detector treats it its own way |
 | 0x20 | Formatted value | | 0x20 | Formatted value |
Line 59: Line 44:
 =====Expression format in "​expr"​ param===== =====Expression format in "​expr"​ param=====
 ^Operator^Description^Example^ ^Operator^Description^Example^
-AND | trips&​ignition ​+{} selection intervals by the value of detalization ​| trips{s>100}, trips with speed > 100| 
-| %%|%% | OR | %%trips|ignition%% +| - | hyphenated custom interval | 1451953325-1451953525,​ from-to ​
-| ~ | NOT | trips&​~ignition ​+| %%|%% | connection custom intervals(1615849200-1615935599%%|%%1615935601-1616022000),​ 2 intervals from-to
-| [] | choise of sensor id | sensors[3], ​default first +| [] | sensor'​s ​id | sensors[3], ​empty means 1st sensor ​
-| () | brackets | %%trips&​~ignition&​(~sensors[3]|sensors[5])%% | +
-| - | hyphenated custom interval | 1451953325-1451953525&​trips&​ignition | +
-| {} | selection intervals by the value of detalization ​ | trips{s<​20}&​ignition | +
  
 =====Response===== =====Response=====
Line 162: Line 145:
  "​avg_speed":<​uint>,​ /​* average speed according to distance */  "​avg_speed":<​uint>,​ /​* average speed according to distance */
  "​distance":<​uint>,​ /​* GPS mileage in trip */  "​distance":<​uint>,​ /​* GPS mileage in trip */
- "​odometer":<​uint>,​ /​* distance for all trips */+ "​odometer":<​uint>,​ /​* distance for all trips during all history period ​*/
  "​course":<​uint>,​ /​* course */  "​course":<​uint>,​ /​* course */
  "​altitude":<​uint>​ /​* altitude */  "​altitude":<​uint>​ /​* altitude */
Line 191: Line 174:
 } }
 </​code>​ </​code>​
 +
 +==== 0x8 flag ====
 +
 +Returns JSON with additional parameters:
 +
 +for **trips** - track in [[https://​developers.google.com/​maps/​documentation/​utilities/​polylineutility|Google notation]].
 +
 +<code javascript>​
 +{
 +    "​trips":​ {
 +        "​0":​ [
 +            {
 +                "​track":​ "​wspnGgvcv@??​oey@kwl@~dtBkeRwjzF??​~ja@_qo]??​g~g^????????????​~bV???????"​
 +            }
 +        ]
 +    }
 +}
 +</​code>​
 +
 ==== 0x10 flag ==== ==== 0x10 flag ====
 Returns full JSON Returns full JSON
Follow us on Facebook Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2025 Gurtam