POST api/Passengers/SetLatestPosition
Updates the latest location of the passenger
Request Information
URI Parameters
None.
Body Parameters
PassengerLocationDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactNr |
Passenger Contact Number |
string |
None. |
| Lat |
Latitude |
decimal number |
None. |
| Lon |
Longitude |
decimal number |
None. |
| LastModifiedUtc |
Last Date and Time Location was updated |
date |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContactNr": "sample string 1",
"Lat": 2.1,
"Lon": 3.1,
"LastModifiedUtc": "2025-12-11T05:26:00.1554811+02:00"
}
application/xml, text/xml
Sample:
<PassengerLocationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSWebAPI.Models.TMS.Passenger"> <ContactNr>sample string 1</ContactNr> <LastModifiedUtc>2025-12-11T05:26:00.1554811+02:00</LastModifiedUtc> <Lat>2.1</Lat> <Lon>3.1</Lon> </PassengerLocationDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.