routes[]

An array of routes shown on the map.

Type:

Array

Show Example:
AngularJS
Knockout
jQuery

color

Specifies the color of the line displaying the route.

Type:

String

Default Value: '#0000FF'

locations[]

Contains an array of objects making up the route.

Type:

Array

These objects have the same structure as an object passed to the center option.

mode

Specifies a transportation mode to be used in the displayed route.

Type:

String

Default Value: 'driving'
Accepted Values: 'driving' | 'walking'

opacity

Specifies the opacity of the line displaying the route.

Type:

Number

Default Value: 0.5

weight

Specifies the thickness of the line displaying the route in pixels.

Type:

Number

Default Value: 5