Resource: Network
Describes the full existing network that can be used. A given API customer might have several networks (e.g., the main network and a possible future modification to evaluate).
JSON representation |
---|
{ "name": string, "dimensions": [ { object ( |
Fields | |
---|---|
name |
Identifier. Cannot be updated. |
dimensions[] |
Distance, weight, pallets, etc., plus scaling (to map floats to integers). |
pricing |
Optional. Price to be paid by the sender for shipping a shipment that does not require a dedicated line. |
currency |
Optional. Single monetary unit used throughout the network. A given API customer can have several different units for different networks; a network is only allowed to have one monetary unit. The unit must be encoded in ISO 4217. |
time |
Optional. Time discretization. Decisions are output with this precision in time. Internally, state is kept with this precision. A duration in seconds with up to nine fractional digits, ending with ' |
distance |
Optional. Distance matrix (represented a list of weighted directed edges). |
DistanceMatrixEntry
Distance between a source hub and a destination hub.
JSON representation |
---|
{
"sourceHub": string,
"destinationHub": string,
"weights": [
{
object ( |
Fields | |
---|---|
source |
Required. Source hub. |
destination |
Required. Destination hub. |
weights[] |
Required. Distance between the hubs, measured in several dimensions. |
Methods |
|
---|---|
|
Creates a Network. |
|
Deletes a Network. |
|
Gets the details of a Network. |
|
Lists the Network. |
|
Returns all the paths that are currently available. |
|
Updates a Network. |