Page Summary
-
Hubs represent locations for transferring shipments between different points in a network.
-
Each hub is defined by its name, position, operating hours, and capacity for handling shipments (cross-docking).
-
You can manage hubs by creating, updating, deleting, and adjusting their availability status through the provided methods.
-
Hubs can include information about their cross-docking capacity and the time it takes to transfer shipments.
-
Latitude and longitude coordinates are used to specify the geographical location of a hub.
Resource: Hub
Shipments must be brought from one hub to another one.
| JSON representation |
|---|
{ "name": string, "position": { object ( |
| Fields | |
|---|---|
name |
Identifier. Cannot be updated. |
position |
Optional. Position to compute real-world paths. |
opening |
Required. Opening times. For now, use a very rough representation: one entry each time the hub opens (if its workers have a lunch break and no one works at that time, there will be two entries for that day). |
cross |
Optional. Capacity of the complete hub. |
cross |
Optional. Time to perform one cross-docking operation (per vehicle). |
LatLng
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
| JSON representation |
|---|
{ "latitude": number, "longitude": number } |
| Fields | |
|---|---|
latitude |
The latitude in degrees. It must be in the range [-90.0, +90.0]. |
longitude |
The longitude in degrees. It must be in the range [-180.0, +180.0]. |
CrossDockingCapacity
Overall cross-docking capacity for a hub.
| JSON representation |
|---|
{
"capacityPerHour": [
{
object ( |
| Fields | |
|---|---|
capacity |
Optional. Cross-docking capacity for each dimension. |
CrossDockingTime
Overall cross-docking time for a hub.
| JSON representation |
|---|
{
"timeConstant": string,
"time": {
object ( |
| Fields | |
|---|---|
time |
Optional. Constant time for a cross-docking operation. A duration in seconds with up to nine fractional digits, ending with ' |
time |
Optional. Separability is a simplifying assumption. |
Methods |
|
|---|---|
|
Creates a Hub. |
|
Deletes a Hub. |
|
Gets the details of a Hub. |
|
Lists the Hubs. |
|
Makes a hub available. |
|
Makes a hub unavailable. |
|
Updates a Hub. |