Enabling pass in of multiple waypoints

Allowing route object to have multiple destinations. Example: routes = [
{ origin:[-118.408075, 33.942536],
destination:[
[-115.15225, 36.080056],
[-104.673178, 39.861656],
[-97.037997, 32.896828],
[-95.341442, 29.984433],
[-87.904842, 41.978603],
[-84.428067, 33.636719],
[-80.943139, 35.214],
[51.4775, -0.461389]
]
}
];