Cloud Optimization V1 API - Module Google::Cloud::Optimization::V1::FleetRouting (v0.4.0)

Reference documentation and code samples for the Cloud Optimization V1 API module Google::Cloud::Optimization::V1::FleetRouting.

A service for optimizing vehicle tours.

Validity of certain types of fields:

  • google.protobuf.Timestamp
    • Times are in Unix time: seconds since 1970-01-01T00:00:00+00:00.
    • seconds must be in [0, 253402300799], i.e. in [1970-01-01T00:00:00+00:00, 9999-12-31T23:59:59+00:00].
    • nanos must be unset or set to 0.
  • google.protobuf.Duration
    • seconds must be in [0, 253402300799], i.e. in [1970-01-01T00:00:00+00:00, 9999-12-31T23:59:59+00:00].
    • nanos must be unset or set to 0.
  • google.type.LatLng
    • latitude must be in [-90.0, 90.0].
    • longitude must be in [-180.0, 180.0].
    • at least one of latitude and longitude must be non-zero.

To load this service and instantiate a REST client:

require "google/cloud/optimization/v1/fleet_routing/rest"
client = ::Google::Cloud::Optimization::V1::FleetRouting::Rest::Client.new