Use Intermediate Waypoints

  • Intermediate waypoints are used for pick-up/drop-off by default, but can be configured as pass-through points using the intermediates request field.

  • A pass-through waypoint is set by defining the via field as true within the waypoint's configuration.

  • Routes containing an origin, pass-through waypoint, and destination will only have one leg, connecting the origin and destination while passing through the intermediate point.

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
    }
  }
}