POST api/Driver/LatestLocation
Retrieves the current location of the driver.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
req |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "IDs": [ 1, 2, 3 ], "Token": "sample string 1", "FreeText": "sample string 2", "GroupIds": [ 1, 2, 3 ], "FromIndex": 3, "ToIndex": 4, "IsWebCalling": true, "RequestMode": "sample string 6", "Client": "sample string 7", "AppVersion": "sample string 8", "AppOperatingSystem": "sample string 9", "AppName": "sample string 10", "MasterUserID": 11, "IsRecurringRequest": true }
text/html
Sample:
{"IDs":[1,2,3],"Token":"sample string 1","FreeText":"sample string 2","GroupIds":[1,2,3],"FromIndex":3,"ToIndex":4,"IsWebCalling":true,"RequestMode":"sample string 6","Client":"sample string 7","AppVersion":"sample string 8","AppOperatingSystem":"sample string 9","AppName":"sample string 10","MasterUserID":11,"IsRecurringRequest":true}
application/xml, text/xml
Sample:
<APILatestPositionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <AppName>sample string 10</AppName> <AppOperatingSystem>sample string 9</AppOperatingSystem> <AppVersion>sample string 8</AppVersion> <Client>sample string 7</Client> <FreeText>sample string 2</FreeText> <FromIndex>3</FromIndex> <GroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </GroupIds> <IsRecurringRequest>true</IsRecurringRequest> <IsWebCalling>true</IsWebCalling> <MasterUserID>11</MasterUserID> <RequestMode>sample string 6</RequestMode> <ToIndex>4</ToIndex> <Token>sample string 1</Token> <IDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </IDs> </APILatestPositionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "PositionMessages": [ { "VehicleID": 1, "DriverID": 2, "PositionMessage": { "ID": 1, "IncomingMessageID": 2, "UnitSerialNumber": "sample string 3", "DateTime": "2025-04-03T23:47:47.8260575+02:00", "CheckSum": 5, "Latitude": 6.1, "Longitude": 7.1, "Speed": 8, "Distance": 9, "IgnitionSource": 10, "GSensor": "sample string 11", "DriverIdentificationCode": "sample string 12", "POSSource": 13, "Processed": true, "ConnectionTypeID": 15, "SteetAddress": "sample string 16", "TripID": 17, "CurrentStatusCode": "sample string 18", "DateTimeToDisplay": "sample string 19" } }, { "VehicleID": 1, "DriverID": 2, "PositionMessage": { "ID": 1, "IncomingMessageID": 2, "UnitSerialNumber": "sample string 3", "DateTime": "2025-04-03T23:47:47.8260575+02:00", "CheckSum": 5, "Latitude": 6.1, "Longitude": 7.1, "Speed": 8, "Distance": 9, "IgnitionSource": 10, "GSensor": "sample string 11", "DriverIdentificationCode": "sample string 12", "POSSource": 13, "Processed": true, "ConnectionTypeID": 15, "SteetAddress": "sample string 16", "TripID": 17, "CurrentStatusCode": "sample string 18", "DateTimeToDisplay": "sample string 19" } }, { "VehicleID": 1, "DriverID": 2, "PositionMessage": { "ID": 1, "IncomingMessageID": 2, "UnitSerialNumber": "sample string 3", "DateTime": "2025-04-03T23:47:47.8260575+02:00", "CheckSum": 5, "Latitude": 6.1, "Longitude": 7.1, "Speed": 8, "Distance": 9, "IgnitionSource": 10, "GSensor": "sample string 11", "DriverIdentificationCode": "sample string 12", "POSSource": 13, "Processed": true, "ConnectionTypeID": 15, "SteetAddress": "sample string 16", "TripID": 17, "CurrentStatusCode": "sample string 18", "DateTimeToDisplay": "sample string 19" } } ], "Success": true, "ErrorMessage": "sample string 2", "MenuAccessData": { "HasAccessToMap": true, "HasAccessToVehicle": true, "HasAccessToVehicleAdministration": true, "HasAccessToDriver": true, "HasAccessToPOI": true, "HasAccessToReports": true, "HasAccessToSettings": true, "HasAccessToTrips": true, "HasAccessToTranslations": true, "HasAccessToDashboard": true, "HasAccessToLogBook": true, "HasAccessToGroup": true, "HasAccessToTemplate": true, "HasAccessToUnit": true, "HasAccessToUser": true, "HasAccessToTicket": true, "HasAccessToContract": true, "HasAccessToSIM": true, "HasAccessToCommand": true, "HasAccessToUnitProfile": true, "HasAccessToProfileTrigger": true, "HasAccessToScript": true, "HasAccessToTriggerSchedule": true }, "StatusCode": 3, "ComponentFilterIds": [ 1, 2, 3 ] }
text/html
Sample:
{"PositionMessages":[{"VehicleID":1,"DriverID":2,"PositionMessage":{"ID":1,"IncomingMessageID":2,"UnitSerialNumber":"sample string 3","DateTime":"2025-04-03T23:47:47.8260575+02:00","CheckSum":5,"Latitude":6.1,"Longitude":7.1,"Speed":8,"Distance":9,"IgnitionSource":10,"GSensor":"sample string 11","DriverIdentificationCode":"sample string 12","POSSource":13,"Processed":true,"ConnectionTypeID":15,"SteetAddress":"sample string 16","TripID":17,"CurrentStatusCode":"sample string 18","DateTimeToDisplay":"sample string 19"}},{"VehicleID":1,"DriverID":2,"PositionMessage":{"ID":1,"IncomingMessageID":2,"UnitSerialNumber":"sample string 3","DateTime":"2025-04-03T23:47:47.8260575+02:00","CheckSum":5,"Latitude":6.1,"Longitude":7.1,"Speed":8,"Distance":9,"IgnitionSource":10,"GSensor":"sample string 11","DriverIdentificationCode":"sample string 12","POSSource":13,"Processed":true,"ConnectionTypeID":15,"SteetAddress":"sample string 16","TripID":17,"CurrentStatusCode":"sample string 18","DateTimeToDisplay":"sample string 19"}},{"VehicleID":1,"DriverID":2,"PositionMessage":{"ID":1,"IncomingMessageID":2,"UnitSerialNumber":"sample string 3","DateTime":"2025-04-03T23:47:47.8260575+02:00","CheckSum":5,"Latitude":6.1,"Longitude":7.1,"Speed":8,"Distance":9,"IgnitionSource":10,"GSensor":"sample string 11","DriverIdentificationCode":"sample string 12","POSSource":13,"Processed":true,"ConnectionTypeID":15,"SteetAddress":"sample string 16","TripID":17,"CurrentStatusCode":"sample string 18","DateTimeToDisplay":"sample string 19"}}],"Success":true,"ErrorMessage":"sample string 2","MenuAccessData":{"HasAccessToMap":true,"HasAccessToVehicle":true,"HasAccessToVehicleAdministration":true,"HasAccessToDriver":true,"HasAccessToPOI":true,"HasAccessToReports":true,"HasAccessToSettings":true,"HasAccessToTrips":true,"HasAccessToTranslations":true,"HasAccessToDashboard":true,"HasAccessToLogBook":true,"HasAccessToGroup":true,"HasAccessToTemplate":true,"HasAccessToUnit":true,"HasAccessToUser":true,"HasAccessToTicket":true,"HasAccessToContract":true,"HasAccessToSIM":true,"HasAccessToCommand":true,"HasAccessToUnitProfile":true,"HasAccessToProfileTrigger":true,"HasAccessToScript":true,"HasAccessToTriggerSchedule":true},"StatusCode":3,"ComponentFilterIds":[1,2,3]}
application/xml, text/xml
Sample:
<APILatestPositionMessagesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.Transport">Success</ResponseCode> <ComponentFilterIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </ComponentFilterIds> <ErrorMessage>sample string 2</ErrorMessage> <MenuAccessData> <HasAccessToCommand>true</HasAccessToCommand> <HasAccessToContract>true</HasAccessToContract> <HasAccessToDashboard>true</HasAccessToDashboard> <HasAccessToDriver>true</HasAccessToDriver> <HasAccessToGroup>true</HasAccessToGroup> <HasAccessToLogBook>true</HasAccessToLogBook> <HasAccessToMap>true</HasAccessToMap> <HasAccessToPOI>true</HasAccessToPOI> <HasAccessToProfileTrigger>true</HasAccessToProfileTrigger> <HasAccessToReports>true</HasAccessToReports> <HasAccessToSIM>true</HasAccessToSIM> <HasAccessToScript>true</HasAccessToScript> <HasAccessToSettings>true</HasAccessToSettings> <HasAccessToTemplate>true</HasAccessToTemplate> <HasAccessToTicket>true</HasAccessToTicket> <HasAccessToTranslations>true</HasAccessToTranslations> <HasAccessToTriggerSchedule>true</HasAccessToTriggerSchedule> <HasAccessToTrips>true</HasAccessToTrips> <HasAccessToUnit>true</HasAccessToUnit> <HasAccessToUnitProfile>true</HasAccessToUnitProfile> <HasAccessToUser>true</HasAccessToUser> <HasAccessToVehicle>true</HasAccessToVehicle> <HasAccessToVehicleAdministration>true</HasAccessToVehicleAdministration> </MenuAccessData> <StatusCode>3</StatusCode> <Success>true</Success> <PositionMessages> <APILatestPositionMessage> <DriverID>2</DriverID> <PositionMessage> <CheckSum>5</CheckSum> <ConnectionTypeID>15</ConnectionTypeID> <CurrentStatusCode>sample string 18</CurrentStatusCode> <DateTime>2025-04-03T23:47:47.8260575+02:00</DateTime> <DateTimeToDisplay>sample string 19</DateTimeToDisplay> <Distance>9</Distance> <DriverIdentificationCode>sample string 12</DriverIdentificationCode> <GSensor>sample string 11</GSensor> <ID>1</ID> <IgnitionSource>10</IgnitionSource> <IncomingMessageID>2</IncomingMessageID> <Latitude>6.1</Latitude> <Longitude>7.1</Longitude> <POSSource>13</POSSource> <Processed>true</Processed> <Speed>8</Speed> <SteetAddress>sample string 16</SteetAddress> <TripID>17</TripID> <UnitSerialNumber>sample string 3</UnitSerialNumber> </PositionMessage> <VehicleID>1</VehicleID> </APILatestPositionMessage> <APILatestPositionMessage> <DriverID>2</DriverID> <PositionMessage> <CheckSum>5</CheckSum> <ConnectionTypeID>15</ConnectionTypeID> <CurrentStatusCode>sample string 18</CurrentStatusCode> <DateTime>2025-04-03T23:47:47.8260575+02:00</DateTime> <DateTimeToDisplay>sample string 19</DateTimeToDisplay> <Distance>9</Distance> <DriverIdentificationCode>sample string 12</DriverIdentificationCode> <GSensor>sample string 11</GSensor> <ID>1</ID> <IgnitionSource>10</IgnitionSource> <IncomingMessageID>2</IncomingMessageID> <Latitude>6.1</Latitude> <Longitude>7.1</Longitude> <POSSource>13</POSSource> <Processed>true</Processed> <Speed>8</Speed> <SteetAddress>sample string 16</SteetAddress> <TripID>17</TripID> <UnitSerialNumber>sample string 3</UnitSerialNumber> </PositionMessage> <VehicleID>1</VehicleID> </APILatestPositionMessage> <APILatestPositionMessage> <DriverID>2</DriverID> <PositionMessage> <CheckSum>5</CheckSum> <ConnectionTypeID>15</ConnectionTypeID> <CurrentStatusCode>sample string 18</CurrentStatusCode> <DateTime>2025-04-03T23:47:47.8260575+02:00</DateTime> <DateTimeToDisplay>sample string 19</DateTimeToDisplay> <Distance>9</Distance> <DriverIdentificationCode>sample string 12</DriverIdentificationCode> <GSensor>sample string 11</GSensor> <ID>1</ID> <IgnitionSource>10</IgnitionSource> <IncomingMessageID>2</IncomingMessageID> <Latitude>6.1</Latitude> <Longitude>7.1</Longitude> <POSSource>13</POSSource> <Processed>true</Processed> <Speed>8</Speed> <SteetAddress>sample string 16</SteetAddress> <TripID>17</TripID> <UnitSerialNumber>sample string 3</UnitSerialNumber> </PositionMessage> <VehicleID>1</VehicleID> </APILatestPositionMessage> </PositionMessages> </APILatestPositionMessagesResponse>