Odometer
The Anyline Odometer API currently supports extraction of both analog and digital odometers.
Input Image Requirements
Please ensure that you follow the below guidelines and requirements when scanning an image.
-
Please make sure that the image in not blurry and in good quality.
-
Recommended Formats: JPG
-
Supported Formats: JPG, PNG
-
Maximum Body size: 10MB
Using the Odometer API
To make a call to the Odometer, create a POST Request and include the following shown in the below example:
curl --request POST \
--url https://api.anyline.com/v2/odometer \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--data '{image: "yourBase64Image"}'
Be sure to replace YOUR_ACCESS_TOKEN with your actual access-token, and the "yourBase64Image" String with the blob for the image you wish to scan.
|
After the call has been sent, you will receive a result including a JSON File like the following example:
{
"mileage":12345,
"transactionId":"00000000-0000-0000-0000-000000000000"
}
And that’s it! You’ve successfully scanned an image using the Odometer API!