Use Intermediate Waypoints

Intermediate waypoints are the non-terminal waypoints that make up a route. You configure them using the intermediates request field. By default, intermediate waypoints are used for stopping to pickup and drop-off, but you can specify that an intermediate waypoint is meant just for passing through.

Configuring a pass-through waypoint

You can configure an intermediate waypoint to be a pass-through waypoint by setting the via field.

Example

The following example demonstrates how to mark an intermediate waypoint as a pass-through waypoint.

{
  "via": true,
  "location": {
    "latLng": {
      "latitude":37.419734,
      "longitude":-122.0827784
    }
  }
}