types

package
v0.0.0-...-406ce68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Courier

type Courier struct {
	ID     int    `json:"id"`
	Name   string `json:"name"`
	Limits struct {
		Weight int    `json:"weight"`
		Volume int    `json:"volume"`
		Orders string `json:"orders"`
	} `json:"limits"`
	WorkingTime struct {
		Start string `json:"start"`
		End   string `json:"end"`
	} `json:"workingTime"`
	IsCycle bool        `json:"isCycle"`
	Geom    string      `json:"geom"`
	Center  interface{} `json:"center"`
	ZoneID  string      `json:"zoneId"`
	Tags    []struct {
		ID   string `json:"id"`
		Name string `json:"name"`
		Code string `json:"code"`
	} `json:"tags"`
	Wave           string      `json:"wave"`
	PhoneNumber    string      `json:"phoneNumber"`
	Type           string      `json:"type"`
	WarehouseID    string      `json:"warehouseId"`
	ExtID          string      `json:"extId"`
	CourierType    interface{} `json:"courierType"`
	ContractNumber string      `json:"contractNumber"`
	OrganizationID string      `json:"organizationId"`
}

type Distance

type Distance struct {
	Road float64
	Time float64
}

type LatLng

type LatLng struct {
	Lat float64
	Lng float64
}

func (*LatLng) Angle

func (p *LatLng) Angle(center *LatLng) float64

func (*LatLng) Distance

func (from *LatLng) Distance(to *LatLng) float64

type Order

type Order struct {
	ID             string    `json:"id"`
	GUID           string    `json:"guid"`
	Day            time.Time `json:"day"`
	CreatedAt      time.Time `json:"createdAt"`
	Address        string    `json:"address"`
	Lat            float64   `json:"lat"`
	Long           float64   `json:"long"`
	State          string    `json:"state"`
	TimeStart      time.Time `json:"timeStart"`
	Weight         float64   `json:"weight"`
	Volume         float64   `json:"volume"`
	Tags           []int     `json:"tags"`
	Warehouse      string    `json:"warehouse"`
	Wave           string    `json:"wave"`
	Route          string    `json:"route"`
	Courier        string    `json:"courier"`
	TimeEnd        time.Time `json:"timeEnd"`
	AddressFixed   string    `json:"addressFixed"`
	ClearingWaveID string    `json:"clearingWaveId"`
	ZoneID         string    `json:"zoneId"`
	ErrorReason    string    `json:"error_reason"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL