Overview
ThePoint entity represents a single AVL telemetry reading from a vehicle tracking device. It contains 50+ attributes covering geospatial data, movement metrics, hardware status, and contextual information.
Table Configuration
- Table name:
points - Synchronize:
false(schema managed manually) - Partitioning: RANGE partitioned by
timestamp
Composite Primary Key
Unique identifier for the point. Auto-generated using
gen_random_uuid().Unix timestamp in milliseconds when the telemetry point was captured. Used as the partition key.
Device Identification
IMEI (International Mobile Equipment Identity) number of the tracking device.
License plate number of the vehicle equipped with this tracker.
Human-friendly alias or name for the tracked vehicle (e.g., “Truck 42”, “Patrol Unit Alpha”).
Geospatial Data
PostGIS Geometry
PostGIS POINT geometry representing the vehicle location. Uses SRID 4326 (WGS 84).Usage example:
Coordinate Components
Latitude in decimal degrees (WGS 84). Range: -90 to 90.
Longitude in decimal degrees (WGS 84). Range: -180 to 180.
Altitude in meters above sea level.
Movement & Speed
Vehicle heading/bearing in degrees. Range: 0-360, where 0 is North, 90 is East, 180 is South, 270 is West.
Current speed in meters per second.
Current speed in kilometers per hour.
Whether the vehicle is currently moving. Typically
true when speed exceeds a threshold (e.g., 5 km/h).Engine ignition status.
true when the engine is on.Distance Tracking
Distance traveled since the last point, in meters.
Cumulative total distance traveled by the vehicle, in meters. This odometer value persists across device resets.
Daily Kilometer Metrics
Total kilometers traveled today (resets at midnight).
Kilometers traveled today within jurisdiction boundaries.
Kilometers traveled today outside jurisdiction boundaries.
Time Tracking (in seconds)
Driving Time
Total seconds spent driving within jurisdiction boundaries today.
Total seconds spent driving outside jurisdiction boundaries today.
Parking Time
Total seconds spent parked (ignition off) within jurisdiction today.
Total seconds spent parked outside jurisdiction today.
Total seconds spent in tactical parking mode (stopped with ignition on).
Engine Hours
Engine hours accumulated today, in hours.
Total cumulative engine hours since device installation.
Engine hours calculated based on ignition state (may differ from ECU-reported hours).
Engine hours when vehicle is stopped with ignition on (idle time).
Hardware & Network Status
Signal & Battery
GSM signal strength (typically 0-31, where higher is better). 99 indicates no signal.
Device battery level as a percentage (0-100), or voltage in millivolts depending on device.
Current battery draw in amperes. Positive values indicate charging, negative indicate discharging.
Device State
Device status code. Interpretation varies by tracker manufacturer.
Data transmission mode (e.g., 0 = Home On Stop, 1 = Home On Moving, 2 = Roaming).
Mobile network type: 0 = GSM, 1 = UMTS, 2 = LTE, etc.
Cellular Network Info
Location Area Code (LAC) from the GSM/LTE network.
Mobile Country Code + Mobile Network Code (MCC+MNC) of the active operator.
Cell tower ID the device is currently connected to.
Protocol Info
Sequential packet ID for tracking data integrity.
Protocol codec identifier (e.g., Codec 8, Codec 16 for Teltonika devices).
GNSS Quality
GPS accuracy/precision in meters. Lower values indicate better accuracy.
GNSS fix state: 0 = No fix, 1 = 2D fix, 2 = 3D fix.
Number of satellites used for the GNSS fix. More satellites generally means better accuracy.
Position Dilution of Precision. Values < 5 are good, > 10 indicate poor geometry.
Horizontal Dilution of Precision. Lower values indicate better horizontal accuracy.
Geocoding & Administrative Zones
Reverse-geocoded address or location name (e.g., “Av. Insurgentes Sur 1602, CDMX”).
UUID of the municipality where this point is located.
UUID of the plot/parcel where this point is located.
Geofences & Sectors
Boolean Flags
Whether the point is inside any assigned geofence.
Whether the point is inside an assigned quadrant.
Whether the point is inside the vehicle’s assigned sector.
Whether the point is inside any sector (not necessarily the assigned one).
Sector Details
Name of the sector the vehicle is currently inside (if any).
UUID of the sector the vehicle is currently inside.
Quadrant Information
JSONB object containing quadrant details when the vehicle is inside a quadrant.Example:
Trip & Alerts
Identifier of the current trip. A trip typically starts when ignition turns on and ends when it turns off.
Active alarm/alert type (e.g., “SPEEDING”, “HARSH_BRAKING”, “GEOFENCE_EXIT”, “POWER_CUT”).
Fuel Consumption
Fuel efficiency in gallons per kilometer.
Total fuel consumed today in gallons.
Timestamps
When the telemetry data was transmitted from the device to the server.
When this record was inserted into the database. Auto-populated by TypeORM.
When this record was last updated. Auto-populated by TypeORM on every update.