Avatar

How to retrieve odometer information

1

How to retrieve odometer information?

Steve Hansen

Please sign in to leave a comment.

11 comments

0
Avatar

Thanks Steve. Did not check the "How To Examples". Thanks for directing me to it.

aj 0 votes
0
Avatar

Another question regarding Odometer, now that i've got the result: 

{"result":[{"device":{"id":"b41"},"dateTime":"2014-01-21T13:32:44.000Z","data":192423.29507497363,"diagnostic":{"id":"DiagnosticOdometerId"},"version":"0000000002f2b6bc","id":"a63jy6AVPnEGV0hxiKql05A"},{"device":{"id":"b41"},"dateTime":"2014-01-21T13:55:50.000Z","data":192442.55218788647,"diagnostic":{"id":"DiagnosticOdometerId"},"version":"0000000002f2b6bc","id":"a63jy6AVPnEGV0hxiKql05A"}]}

What's the unit to that odometer value?

 

Lucas Morano 0 votes
0
Avatar

Steve, this referenced example uses "DiagnosticOdometerAdjustmentId" as DiagnosticId, is this correct?

Lucas Morano 0 votes
0
Avatar

It is nice to have the example, but how would one ever figure that out with the API documentation? It seems that the documentation is incomplete. I do not see anywhere where  "DiagnosticOdometerAdjustmentId" is even referenced.

Peter Evensen 0 votes
0
Avatar

You make a good point. We'll look into adding a section to the SDK about this "special" case.

Steve Hansen 0 votes
0
Avatar

I have some odometer values being returned via StatusData using search criteria like this: DiagnosticSearch = new DiagnosticSearch { Id = KnownId.DiagnosticOdometerAdjustmentId }

odometerReading.Mileage = 1037799000.00,  // Over 1 Billion meters
(odometerReading.Mileage * 0.621371) / 1000 = 644858.20,      // 644,858 miles; Is this the correct value in miles?
Distance.ToImperial(odometerReading.Mileage) = 644858401.93, // divided by 5280 = 122132.27 miles; Or is this the correct value in miles?
Distance.ToMetric(odometerReading.Mileage) = 1670175593.86   // Over 1.6 Billion

Can the values really be that large?  Please help.

Daniel Fenn 0 votes