بيانات التتبع
المواقع والمسارات والرحلات والتوقفات والإحصاءات اليومية والسجل الزمني ووسائط الكاميرات.
عنوان الأساسhttps://api.ping.nml.sa/v111 عملية
الانتقال إلى عملية
الأخطاء المشتركة
تُرجع عمليات هذه الصفحة هذه الأخطاء بصيغة واحدة، وتذكر كل عملية الأخطاء التي تُرجعها.
400The request is invalid (code: invalid_request), with field errors.401The API key is missing, unknown, expired or revoked (code: unauthorized).403The API key lacks the scope this operation needs (code: forbidden).404No such resource in this account, or outside the key's data scope (code: not_found).429The key's rate limit is reached (code: rate_limited). Retry after the Retry-After header's seconds.
تقييم القيادة لكل مركبة خلال فترة.
GET/v1/driving-scores
Distance, driving and idle time, harsh driving and overspeeding events, and a 0 to 100 score per vehicle (or per driver with `by=driver`), over the Riyadh calendar days from `from` to `to` inclusive, at most 92 days, or per Riyadh week (Sunday first) with `per=week`. Without dates, the last 7 days. Trips count by their start; events count with the trip they happened in. A trip's driver is the driver whose iButton key or card the device read, else the driver assigned to the vehicle when it started.
النطاقtelemetry:read
المعاملات
fromstring (date)الاستعلامFirst day (Riyadh), YYYY-MM-DD.
مثال:
2026-11-01tostring (date)الاستعلامLast day (Riyadh), YYYY-MM-DD, inclusive.
مثال:
2026-11-07bystringالاستعلامScore each vehicle (default) or each driver.
مثال:
driverperstringالاستعلامOne score over the whole period (default) or one per week.
مثال:
week
الاستجابة 200
fromstring (date)مثال:
2026-11-10tostring (date)مثال:
2026-11-16bystringأحد:
vehicledriverperstringأحد:
periodweekdataobject[]One entry per vehicle (or driver) with trips in the period (per week, per week with trips), by week then id.
حقول data
vehicle_idstring | nullThe vehicle; null when scoring by driver.
driver_idstring | nullThe driver when scoring by driver; null there for trips no driver was known for, and always null by vehicle.
مثال:
nullweekstring | null (date)The Sunday the Riyadh week starts with, per week; null over the period.
مثال:
nulldistance_mnumberمثال:
412300driving_sintegerمثال:
41200idle_sintegerمثال:
3600harsh_accelerationintegerHarsh acceleration events the device reported.
مثال:
1harsh_brakingintegerمثال:
2harsh_corneringintegerمثال:
0overspeedintegerOverspeeding events (the device's own speed limit).
مثال:
1scoreinteger | null0 to 100, higher is safer: harsh and overspeeding events per 100 km and the share of idling. Null under the minimum distance.
مثال:
86
الأخطاء
curl "https://api.ping.nml.sa/v1/driving-scores" \
-H "Authorization: Bearer $PING_API_KEY"{
"from": "2026-11-10",
"to": "2026-11-16",
"by": "vehicle",
"per": "period",
"data": [
{
"vehicle_id": "string",
"driver_id": null,
"week": null,
"distance_m": 412300,
"driving_s": 41200,
"idle_s": 3600,
"harsh_acceleration": 1,
"harsh_braking": 2,
"harsh_cornering": 0,
"overspeed": 1,
"score": 86
}
]
}تنزيل صورة أو مقطع.
GET/v1/media/{mediaId}/file
The photo (JPEG) or clip (MP4) itself, for an account that owned the vehicle when it was taken. A file not yet received answers 404.
النطاقtelemetry:read
المعاملات
mediaIdstringالمسار مطلوبمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d
الاستجابة 200
The file. image/jpeg
الأخطاء
curl "https://api.ping.nml.sa/v1/media/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/file" \
-H "Authorization: Bearer $PING_API_KEY"آخر موقع معروف لكل مركبة.
GET/v1/positions/last
The latest position and state of every vehicle the account owns now, from the device installed in it. Vehicles with no position since their device was installed are left out. Ordered by vehicle id.
النطاقtelemetry:read
المعاملات
limitintegerالاستعلامItems per page, 1 to 200 (default 50).
cursorstringالاستعلامThe next_cursor of the previous page.
الاستجابة 200
dataobject[]حقول data
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfix_timestring (date-time)When the device took the position (GNSS time).
مثال:
2026-11-17T08:42:10ZlatnumberLatitude, WGS 84.
مثال:
24.7136lonnumberLongitude, WGS 84.
مثال:
46.6753speed_kmhinteger | nullمثال:
62course_deginteger | nullHeading, degrees clockwise from north.
مثال:
274ignitionboolean | nullIgnition on; null when the device does not report it.
مثال:
truemovingboolean | nullمثال:
trueconnectedbooleanThe device holds an open connection now.
مثال:
truelast_seen_atstring (date-time)When the device last sent data.
مثال:
2026-11-17T08:42:12Zodometer_minteger | nullOdometer in metres, as the device reports it.
مثال:
128450300engine_sinteger | nullTotal engine hours in seconds, as the device reports them.
مثال:
4518000state_sincestring | null (date-time)When the current state began: moving, idling (ignition on, not moving) or parked (ignition off).
مثال:
2026-11-17T08:31:40ZdeviceobjectThe device installed in the vehicle.
حقول device
idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dimeistringInternational Mobile Equipment Identity
مثال:
490154203237518modelstringمثال:
FMC130
signalsobject[]The latest value of each measurement signal the device reports (fuel_level_pct, fuel_used_l, engine_hours_h, external_voltage_v, battery_voltage_v, gsm_signal, eco_score, cargo_temp_c ...), by key.
حقول signals
keystringA measurement signal (infra/devices/io/signals.toml; eventual IO such as harsh driving is a driving event instead). Flags read 0 or 1.
أحد:
fuel_used_lfuel_level_pctengine_hours_hengine_rpmfault_codesseatbelt_driverdoor_opencargo_temp_ccargo_temp_2_cexternal_voltage_vbattery_voltage_vgsm_signaleco_scorevaluenumberمثال:
64atstring (date-time)Fix time of the record that carried it.
مثال:
2026-11-17T08:40:00Z
next_cursorstring | nullمثال:
eyJpZCI6InZlaF83S3EyIn0
الأخطاء
curl "https://api.ping.nml.sa/v1/positions/last" \
-H "Authorization: Bearer $PING_API_KEY"{
"data": [
{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"fix_time": "2026-11-17T08:42:10Z",
"lat": 24.7136,
"lon": 46.6753,
"speed_kmh": 62,
"course_deg": 274,
"ignition": true,
"moving": true,
"connected": true,
"last_seen_at": "2026-11-17T08:42:12Z",
"odometer_m": 128450300,
"engine_s": 4518000,
"state_since": "2026-11-17T08:31:40Z",
"device": {
"id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"imei": "490154203237518",
"model": "FMC130"
},
"signals": [
{
"key": "fuel_level_pct",
"value": 64,
"at": "2026-11-17T08:40:00Z"
}
]
}
],
"next_cursor": "eyJpZCI6InZlaF83S3EyIn0"
}المسافة اليومية للمركبة وزمن القيادة والتباطؤ وتشغيل المحرك.
GET/v1/vehicles/{vehicleId}/daily-stats
One entry per day with data, by the Riyadh calendar day (UTC+3), from `from` to `to` inclusive, at most 92 days. Without them, the last 7 days.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date)الاستعلامFirst day (Riyadh), YYYY-MM-DD.
مثال:
2026-11-01tostring (date)الاستعلامLast day (Riyadh), YYYY-MM-DD, inclusive.
مثال:
2026-11-07
الاستجابة 200
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date)مثال:
2026-11-10tostring (date)مثال:
2026-11-16dataobject[]Days with data, oldest first.
حقول data
datestring (date)The Riyadh calendar day.
مثال:
2026-11-16distance_mnumberDistance over valid positions, metres.
مثال:
84210driving_sintegerDriving time of the trips that started that day, seconds.
مثال:
9120idle_sintegerIdle time of the trips that started that day, seconds.
مثال:
1410engine_sinteger | nullEngine time from the device's engine hours counter, seconds; null when the device does not report it.
مثال:
11200max_speed_kmhinteger | nullمثال:
118tripsintegerمثال:
7harsh_eventsintegerHarsh acceleration, braking and cornering events that day.
مثال:
3overspeedintegerOverspeeding events that day.
مثال:
1fuel_used_lnumber | nullFuel used that day, from the engine's fuel counter; null when the device does not report it.
مثال:
31.8
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/daily-stats" \
-H "Authorization: Bearer $PING_API_KEY"{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"from": "2026-11-10",
"to": "2026-11-16",
"data": [
{
"date": "2026-11-16",
"distance_m": 84210,
"driving_s": 9120,
"idle_s": 1410,
"engine_s": 11200,
"max_speed_kmh": 118,
"trips": 7,
"harsh_events": 3,
"overspeed": 1,
"fuel_used_l": 31.8
}
]
}التزود بالوقود وانخفاضاته للمركبة.
GET/v1/vehicles/{vehicleId}/fuel-events
Refuels and drops found in the tank level: a rise or a fall past the thresholds (services/telemetry/unit.toml [service.fuel]) while the vehicle stands, newest first. Without from and to, the last 7 days; at most 31 days.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)الاستعلامStart of the period, RFC 3339 (inclusive). Default: 7 days before to.
مثال:
2026-11-10T00:00:00Ztostring (date-time)الاستعلامEnd of the period, RFC 3339 (exclusive). Default: now.
مثال:
2026-11-17T00:00:00Z
الاستجابة 200
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)مثال:
2026-11-10T00:00:00Ztostring (date-time)مثال:
2026-11-17T00:00:00Zdataobject[]Newest first.
حقول data
atstring (date-time)When the level began to change.
مثال:
2026-11-17T06:05:00Zkindstringأحد:
refueldropfrom_pctnumberمثال:
22to_pctnumberمثال:
96latnumber | nullمثال:
24.7136lonnumber | nullمثال:
46.6753ignitionboolean | nullThe ignition was on at some point while the level changed; null when the device does not report it. A drop with the engine off is one the theft check keeps.
مثال:
false
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/fuel-events" \
-H "Authorization: Bearer $PING_API_KEY"{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"from": "2026-11-10T00:00:00Z",
"to": "2026-11-17T00:00:00Z",
"data": [
{
"at": "2026-11-17T06:05:00Z",
"kind": "refuel",
"from_pct": 22,
"to_pct": 96,
"lat": 24.7136,
"lon": 46.6753,
"ignition": false
}
]
}قائمة الصور والمقاطع من كاميرات المركبة.
GET/v1/vehicles/{vehicleId}/media
Photos and clips from the vehicle's cameras (FMC650 with DualCam or DashCam), newest first, with what triggered them and their status. Download a stored file with getMediaFile.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)الاستعلامStart of the period, RFC 3339 (inclusive). Default: 7 days before to.
مثال:
2026-11-10T00:00:00Ztostring (date-time)الاستعلامEnd of the period, RFC 3339 (exclusive). Default: now.
مثال:
2026-11-17T00:00:00ZlimitintegerالاستعلامItems per page, 1 to 200 (default 50).
cursorstringالاستعلامThe next_cursor of the previous page.
الاستجابة 200
dataobject[]حقول data
idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dvehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dkindstringأحد:
photoclipcamerastringأحد:
frontreartriggerstringThe alert rule template that asked for it (crash, panic, towing), or manual for a request from the console.
مثال:
crashstatusstringstored files can be downloaded.
أحد:
requestedreceivingstoredfailedcontent_typestringأحد:
image/jpegvideo/mp4requested_atstring (date-time)مثال:
2026-11-17T06:48:31Ztaken_atstring | null (date-time)When the camera took it; null until the device reports it.
مثال:
2026-11-17T06:48:30Zbytesinteger | nullمثال:
184320
next_cursorstring | nullمثال:
eyJpZCI6InZlaF83S3EyIn0
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/media" \
-H "Authorization: Bearer $PING_API_KEY"{
"data": [
{
"id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"kind": "photo",
"camera": "front",
"trigger": "crash",
"status": "stored",
"content_type": "image/jpeg",
"requested_at": "2026-11-17T06:48:31Z",
"taken_at": "2026-11-17T06:48:30Z",
"bytes": 184320
}
],
"next_cursor": "eyJpZCI6InZlaF83S3EyIn0"
}سجل قراءة من قراءات المركبة.
GET/v1/vehicles/{vehicleId}/signals/{key}
One measurement signal (fuel_level_pct, external_voltage_v, cargo_temp_c ...) between two times, averaged per step (default 300 s), oldest first, at most 7 days per request.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dkeystringالمسار مطلوبThe measurement signal (infra/devices/io/signals.toml).
مثال:
fuel_level_pctfromstring (date-time)الاستعلام مطلوبStart of the window, RFC 3339 (inclusive).
مثال:
2026-11-17T00:00:00Ztostring (date-time)الاستعلام مطلوبEnd of the window, RFC 3339 (exclusive).
مثال:
2026-11-17T12:00:00ZstepintegerالاستعلامSeconds per point, 60 to 3600.
الاستجابة 200
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dkeystringA measurement signal (infra/devices/io/signals.toml; eventual IO such as harsh driving is a driving event instead). Flags read 0 or 1.
أحد:
fuel_used_lfuel_level_pctengine_hours_hengine_rpmfault_codesseatbelt_driverdoor_opencargo_temp_ccargo_temp_2_cexternal_voltage_vbattery_voltage_vgsm_signaleco_scorestep_sintegerمثال:
300dataobject[]Oldest first; steps without a reading are left out.
حقول data
atstring (date-time)مثال:
2026-11-17T06:05:00Zvaluenumberمثال:
64.5
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/signals/fuel_level_pct?from=2026-11-17T00:00:00Z&to=2026-11-17T12:00:00Z" \
-H "Authorization: Bearer $PING_API_KEY"{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"key": "fuel_level_pct",
"step_s": 300,
"data": [
{
"at": "2026-11-17T06:05:00Z",
"value": 64.5
}
]
}توقفات المركبة خلال فترة مع مدتها وموقعها.
GET/v1/vehicles/{vehicleId}/stops
Stops that start in the period, newest first, with their duration, location and idling time. Without `from` and `to`, the last 7 days.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)الاستعلامStart of the period, RFC 3339 (inclusive). Default: 7 days before to.
مثال:
2026-11-10T00:00:00Ztostring (date-time)الاستعلامEnd of the period, RFC 3339 (exclusive). Default: now.
مثال:
2026-11-17T00:00:00ZlimitintegerالاستعلامItems per page, 1 to 200 (default 50).
cursorstringالاستعلامThe next_cursor of the previous page.
الاستجابة 200
dataobject[]حقول data
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dstarted_atstring (date-time)مثال:
2026-11-17T06:48:30Zended_atstring (date-time)مثال:
2026-11-17T07:20:00Zduration_sintegerمثال:
1890latnumberمثال:
24.6877lonnumberمثال:
46.7219ignition_on_sintegerIdling inside the stop: ignition on, seconds.
مثال:
240
next_cursorstring | nullمثال:
eyJpZCI6InZlaF83S3EyIn0
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/stops" \
-H "Authorization: Bearer $PING_API_KEY"{
"data": [
{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"started_at": "2026-11-17T06:48:30Z",
"ended_at": "2026-11-17T07:20:00Z",
"duration_s": 1890,
"lat": 24.6877,
"lon": 46.7219,
"ignition_on_s": 240
}
],
"next_cursor": "eyJpZCI6InZlaF83S3EyIn0"
}السجل الزمني للمركبة: الإشعال والحركة والرحلات والتوقفات والاتصال.
GET/v1/vehicles/{vehicleId}/timeline
Ignition and motion changes, trip and stop boundaries, harsh driving, overspeeding, crash, towing, jamming and power-cut events, and device connections in one time-ordered list, at most 24 hours per request. Alarms are read with the rules API.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)الاستعلام مطلوبStart of the window, RFC 3339 (inclusive).
مثال:
2026-11-17T00:00:00Ztostring (date-time)الاستعلام مطلوبEnd of the window, RFC 3339 (exclusive).
مثال:
2026-11-17T12:00:00Z
الاستجابة 200
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)مثال:
2026-11-17T00:00:00Ztostring (date-time)مثال:
2026-11-17T12:00:00Zeventsobject[]Oldest first.
حقول events
atstring (date-time)مثال:
2026-11-17T06:48:30Zkindstringأحد:
ignition_onignition_offmotion_startmotion_stoptrip_starttrip_endstop_startstop_enddevice_connecteddevice_disconnectedharsh_accelerationharsh_brakingharsh_corneringoverspeedcrashtowingjammingunpluglatnumber | nullمثال:
24.6877lonnumber | nullمثال:
46.7219valuenumber | nullHarsh driving force in g, overspeeding speed in km/h, crash trace type; null for other kinds.
مثال:
null
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/timeline?from=2026-11-17T00:00:00Z&to=2026-11-17T12:00:00Z" \
-H "Authorization: Bearer $PING_API_KEY"{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"from": "2026-11-17T00:00:00Z",
"to": "2026-11-17T12:00:00Z",
"events": [
{
"at": "2026-11-17T06:48:30Z",
"kind": "ignition_off",
"lat": 24.6877,
"lon": 46.7219,
"value": null
}
]
}مسار المركبة بين وقتين.
GET/v1/vehicles/{vehicleId}/track
The vehicle's positions from `from` (inclusive) to `to` (exclusive), oldest first, at most 7 days per request. Positions flagged as invalid (no fix or an impossible jump) are kept with valid = false.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)الاستعلام مطلوبStart of the window, RFC 3339 (inclusive).
مثال:
2026-11-17T00:00:00Ztostring (date-time)الاستعلام مطلوبEnd of the window, RFC 3339 (exclusive).
مثال:
2026-11-17T12:00:00ZlimitintegerالاستعلامItems per page, 1 to 200 (default 50).
cursorstringالاستعلامThe next_cursor of the previous page.
الاستجابة 200
dataobject[]حقول data
fix_timestring (date-time)مثال:
2026-11-17T08:42:10Zlatnumberمثال:
24.7136lonnumberمثال:
46.6753altitude_minteger | nullمثال:
612speed_kmhinteger | nullمثال:
62course_deginteger | nullHeading, 0 to 359 degrees from north.
مثال:
145satellitesinteger | nullمثال:
11ignitionboolean | nullمثال:
truemotionboolean | nullمثال:
truevalidbooleanFalse for a position with no fix, at 0,0, or after an impossible jump.
مثال:
true
next_cursorstring | nullمثال:
eyJpZCI6InZlaF83S3EyIn0
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/track?from=2026-11-17T00:00:00Z&to=2026-11-17T12:00:00Z" \
-H "Authorization: Bearer $PING_API_KEY"{
"data": [
{
"fix_time": "2026-11-17T08:42:10Z",
"lat": 24.7136,
"lon": 46.6753,
"altitude_m": 612,
"speed_kmh": 62,
"course_deg": 145,
"satellites": 11,
"ignition": true,
"motion": true,
"valid": true
}
],
"next_cursor": "eyJpZCI6InZlaF83S3EyIn0"
}رحلات المركبة خلال فترة.
GET/v1/vehicles/{vehicleId}/trips
Trips that start in the period, newest first. A trip runs from ignition on and motion to the stop that ends it. Without `from` and `to`, the last 7 days.
النطاقtelemetry:read
المعاملات
vehicleIdstringالمسار مطلوبThe vehicle id.
مثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dfromstring (date-time)الاستعلامStart of the period, RFC 3339 (inclusive). Default: 7 days before to.
مثال:
2026-11-10T00:00:00Ztostring (date-time)الاستعلامEnd of the period, RFC 3339 (exclusive). Default: now.
مثال:
2026-11-17T00:00:00ZlimitintegerالاستعلامItems per page, 1 to 200 (default 50).
cursorstringالاستعلامThe next_cursor of the previous page.
الاستجابة 200
dataobject[]حقول data
vehicle_idstringمثال:
019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9dstarted_atstring (date-time)مثال:
2026-11-17T06:10:00Zended_atstring (date-time)مثال:
2026-11-17T06:48:30Zstart_latnumber | nullمثال:
24.7136start_lonnumber | nullمثال:
46.6753end_latnumber | nullمثال:
24.6877end_lonnumber | nullمثال:
46.7219distance_mnumberمثال:
18420driving_sintegerTime in motion, seconds.
مثال:
1980idle_sintegerTime with ignition on and no motion, seconds.
مثال:
330max_speed_kmhinteger | nullمثال:
104harsh_accelerationintegerHarsh acceleration events the device reported.
مثال:
1harsh_brakingintegerمثال:
2harsh_corneringintegerمثال:
0overspeedintegerOverspeeding events (the device's own speed limit).
مثال:
1fuel_used_lnumber | nullFuel used over the trip, from the engine's fuel counter; null when the device does not report it.
مثال:
6.4driver_keystring | nullThe driver's iButton key or card (hex) last presented during the trip; null when none was. Matches a fleet driver's ibutton_id.
مثال:
01A2B3C4D5E6F708driver_idstring | nullThe fleet driver: whoever carried that key when the trip started, else the driver assigned to the vehicle then; null when neither is known.
next_cursorstring | nullمثال:
eyJpZCI6InZlaF83S3EyIn0
الأخطاء
curl "https://api.ping.nml.sa/v1/vehicles/019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d/trips" \
-H "Authorization: Bearer $PING_API_KEY"{
"data": [
{
"vehicle_id": "019ac0c4-6f1e-7a3b-9c2d-4e5f6a7b8c9d",
"started_at": "2026-11-17T06:10:00Z",
"ended_at": "2026-11-17T06:48:30Z",
"start_lat": 24.7136,
"start_lon": 46.6753,
"end_lat": 24.6877,
"end_lon": 46.7219,
"distance_m": 18420,
"driving_s": 1980,
"idle_s": 330,
"max_speed_kmh": 104,
"harsh_acceleration": 1,
"harsh_braking": 2,
"harsh_cornering": 0,
"overspeed": 1,
"fuel_used_l": 6.4,
"driver_key": "01A2B3C4D5E6F708",
"driver_id": "string"
}
],
"next_cursor": "eyJpZCI6InZlaF83S3EyIn0"
}