Documentation
¶
Index ¶
Constants ¶
View Source
const ( // 基地址 BaseUrl = "https://api.bjpgis.com" // 无牌车上报的车牌 NoPlateNumber = "UNKNOWN" // 车辆进出场标志位 InOutEnter = uint8(1) // 入场 InOutExit = uint8(0) // 出场 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
连接
func (*Client) ParkData ¶
func (c *Client) ParkData(req ParkDataRequest) (rsp ParkDataResponse, err error)
上传停车场实时总进出车辆信息、实时出入库数及当前空闲车位数
func (*Client) ParkInfo ¶
func (c *Client) ParkInfo(req ParkInfoRequest) (rsp ParkInfoResponse, err error)
上传停车场基础信息数据,首次连接成功后调用一次完成上传即可
type ParkDataRequest ¶
type ParkDataRequest struct { In int64 `json:"in"` // 调用接口时刻总进库车辆数(当天) Out int64 `json:"out"` // 调用接口时刻总出库车辆数(当天) Free int64 `json:"free"` // 调用接口时刻总剩余空闲车位数 PlateId string `json:"plateid"` // 本次进库/出库车辆车牌信息,未识别车牌可标识为UNKNOWN InOut uint8 `json:"inout"` // 该车辆进出场标志位,参见常量 DoTime int64 `json:"dotime"` // 该车辆进出库记录Unix时间戳 }
type ParkDataResponse ¶
type ParkInfoRequest ¶
type ParkInfoRequest struct { Fullname string `json:"fullname"` // 停车场全称,请使用经营备案证的规范名称 Abbrname string `json:"abbrname,omitempty"` // 停车场简称 Latitude float64 `json:"lat,omitempty"` // 停车场纬度,百度坐标 Longitude float64 `json:"lng,omitempty"` // 停车场经度,百度坐标 Address string `json:"address"` // 停车场地址 Contact string `json:"contact"` // 单位负责人 Phone string `json:"phone"` // 联系电话 Space int64 `json:"space"` // 停车场总车位数 DsSpace int64 `json:"dsspace,omitempty"` // 残疾人车位数 BizSpace int64 `json:"bizspace"` // 经营性车位数 NeSpace int64 `json:"nespace,omitempty"` // 新能源专用车位数 FastPile int64 `json:"fastpile,omitempty"` // 充电桩数,快 SlowPile int64 `json:"slowpile,omitempty"` // 充电桩数,慢 }
type ParkInfoResponse ¶
type ParkInfoResponse struct { }
Click to show internal directories.
Click to hide internal directories.