POST api/Location

添加车辆位置信息

Request Information

URI Parameters

None.

Body Parameters

车辆位置信息

Collection of LocationDto
NameDescriptionTypeAdditional information
Id

integer

None.

DriverId

司机的用户ID

integer

None.

PlateNumber

车牌号

string

None.

OrderNo

订单号,如果为多个订单号,则以英文逗号隔开,例如A0001,A0002这种格式

string

None.

Longitude

经度

decimal number

None.

Latitude

纬度

decimal number

None.

Address

定位地址

string

None.

CreateDate

上传时间

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "DriverId": 2,
    "PlateNumber": "sample string 3",
    "OrderNo": "sample string 4",
    "Longitude": 5.0,
    "Latitude": 6.0,
    "Address": "sample string 7",
    "CreateDate": "2026-03-31 21:49:25"
  },
  {
    "Id": 1,
    "DriverId": 2,
    "PlateNumber": "sample string 3",
    "OrderNo": "sample string 4",
    "Longitude": 5.0,
    "Latitude": 6.0,
    "Address": "sample string 7",
    "CreateDate": "2026-03-31 21:49:25"
  }
]

application/xml, text/xml

Sample:
<ArrayOfLocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto">
  <LocationDto>
    <Address>sample string 7</Address>
    <CreateDate>2026-03-31T21:49:25.9759412+08:00</CreateDate>
    <DriverId>2</DriverId>
    <Id>1</Id>
    <Latitude>6</Latitude>
    <Longitude>5</Longitude>
    <OrderNo>sample string 4</OrderNo>
    <PlateNumber>sample string 3</PlateNumber>
  </LocationDto>
  <LocationDto>
    <Address>sample string 7</Address>
    <CreateDate>2026-03-31T21:49:25.9759412+08:00</CreateDate>
    <DriverId>2</DriverId>
    <Id>1</Id>
    <Latitude>6</Latitude>
    <Longitude>5</Longitude>
    <OrderNo>sample string 4</OrderNo>
    <PlateNumber>sample string 3</PlateNumber>
  </LocationDto>
</ArrayOfLocationDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InfoResultOfListOfLocationDto
NameDescriptionTypeAdditional information
Data

Collection of LocationDto

None.

IsSuccess

是否成功:true:成功,false:失败

boolean

None.

Msg

返回消息

string

None.

Extra

特定信息

string

None.

Code

内部代码:[成功 000000|失败 000001|未登陆/未授权 000002]

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Id": 1,
      "DriverId": 2,
      "PlateNumber": "sample string 3",
      "OrderNo": "sample string 4",
      "Longitude": 5.0,
      "Latitude": 6.0,
      "Address": "sample string 7",
      "CreateDate": "2026-03-31 21:49:25"
    },
    {
      "Id": 1,
      "DriverId": 2,
      "PlateNumber": "sample string 3",
      "OrderNo": "sample string 4",
      "Longitude": 5.0,
      "Latitude": 6.0,
      "Address": "sample string 7",
      "CreateDate": "2026-03-31 21:49:25"
    }
  ],
  "IsSuccess": true,
  "Msg": "sample string 2",
  "Extra": "sample string 3",
  "Code": "sample string 4"
}

application/xml, text/xml

Sample:
<InfoResultOfArrayOfLocationDto8taVmWcU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Core.ShareData">
  <Code>sample string 4</Code>
  <Extra>sample string 3</Extra>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 2</Msg>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto">
    <d2p1:LocationDto>
      <d2p1:Address>sample string 7</d2p1:Address>
      <d2p1:CreateDate>2026-03-31T21:49:25.9759412+08:00</d2p1:CreateDate>
      <d2p1:DriverId>2</d2p1:DriverId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Latitude>6</d2p1:Latitude>
      <d2p1:Longitude>5</d2p1:Longitude>
      <d2p1:OrderNo>sample string 4</d2p1:OrderNo>
      <d2p1:PlateNumber>sample string 3</d2p1:PlateNumber>
    </d2p1:LocationDto>
    <d2p1:LocationDto>
      <d2p1:Address>sample string 7</d2p1:Address>
      <d2p1:CreateDate>2026-03-31T21:49:25.9759412+08:00</d2p1:CreateDate>
      <d2p1:DriverId>2</d2p1:DriverId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Latitude>6</d2p1:Latitude>
      <d2p1:Longitude>5</d2p1:Longitude>
      <d2p1:OrderNo>sample string 4</d2p1:OrderNo>
      <d2p1:PlateNumber>sample string 3</d2p1:PlateNumber>
    </d2p1:LocationDto>
  </Data>
</InfoResultOfArrayOfLocationDto8taVmWcU>