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

0.16.0 (latest) 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.1 0.1.1 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