To detect idling on a Volkswagen Golf, query the DIMO Telemetry API for segments using the idling detection mechanism. On a Volkswagen Golf, both the DIMO LTE R1 (2009 and newer) and AutoPi (2008–2023) support idling, and both report engine RPM (powertrainCombustionEngineSpeed) and vehicle speed (speed). Idle segments are contiguous periods where engine RPM stays in the idle range, and the mechanism requires a DIMO device. See the Volkswagen Golf vehicle page for the full list of signals. For any other vehicle, see how to detect vehicle idling.
DIMO adds vehicle-state depth on top of GPS tracking; it doesn't replace it. Vehicle owners consent to and control sharing, so builders get data with clear provenance.
Steps
- Get a Developer JWT. You need the
Client ID,Redirect URIandAPI Keyof a Developer License from the Developer Console. You can use the system-generated Developer JWT, or generate one with your API key through a server SDK. - Get the Golf shared with your app. You need a vehicle shared with you before you can fetch a Vehicle JWT. DIMO Connect handles vehicle sharing.
- Exchange the Developer JWT for a Vehicle JWT by sending a request to the Token Exchange API at
https://token-exchange-api.dimo.zone/v1/tokens/exchange. Include the Golf's token ID and two privileges:1(all-time, non-location data) and4(all-time location). Thesegmentsquery requires both. - Send the Vehicle JWT in the
Authorizationheader of a GraphQL request to the Telemetry API athttps://telemetry-api.dimo.zone/query. - Call the
segmentsquery withmechanism: idling, the Golf'stokenId, and afrom/torange of at most 31 days. - Tune detection with
configif needed.maxIdleRpmsets the upper RPM bound for idle (default 1000, min 300, max 3000).minSegmentDurationSecondsfilters short segments (default 240).signalCountThresholdsets how sensitive activity detection is (default 10). - Read each segment's
duration(in seconds),startandend. IfisOngoingis true, the segment extends past your query range andendis not included. - Page through results with
limit(default 100, max 200) andafter, passing the start timestamp of the last segment from the previous page.
Code
This GraphQL query asks for average engine RPM and maximum speed in each idle segment alongside the default signals. Replace 12345 with the Golf's token ID and send your Vehicle JWT as { "Authorization": "Bearer <yourVehicleJwt>" }.
query GetIdlingSegments {
segments(
tokenId: 12345
from: "2026-11-01T00:00:00Z"
to: "2026-11-07T00:00:00Z"
mechanism: idling
config: {
maxIdleRpm: 1000
minSegmentDurationSeconds: 240
}
signalRequests: [
{ name: "powertrainCombustionEngineSpeed", agg: AVG }
{ name: "speed", agg: MAX }
]
limit: 50
) {
start {
timestamp
value { latitude longitude }
}
end {
timestamp
value { latitude longitude }
}
duration
isOngoing
startedBeforeRange
signals { name agg value }
}
}
Next, create a Developer License in the Developer Console and use the authentication guide to exchange tokens for your Golf.
FAQ
Does idling detection work without a DIMO device?
No. The idling detection mechanism requires a DIMO device. On a Volkswagen Golf, the DIMO LTE R1 and AutoPi both report idling.
Which Golf signals does idle detection rely on?
Idle segments are based on engine RPM staying in the idle range. Both the DIMO LTE R1 and AutoPi report engine RPM as powertrainCombustionEngineSpeed on a Volkswagen Golf.
How do I change what counts as idle?
Set maxIdleRpm in config. Windows where the maximum RPM is at or below this value are considered idle. The default is 1000, with a minimum of 300 and a maximum of 3000.
How far back can I query?
The maximum date range for a segments query is 31 days. Use limit and after to page through results within that range.
Why is a segment missing an end time?
If isOngoing is true, the segment extends beyond your query range, so end is not included. Widen the to time or query again later.
Methodology: based on the DIMO documentation for Authentication, Building Your First App, and the Telemetry API Vehicle Segments reference, plus the Volkswagen Golf vehicle page.