class_docstr: Directions layer.
  
  Add this to a :class:`gmaps.Figure` instance to draw directions.
  
  Use the :func:`gmaps.directions_layer` factory function to
  instantiate this class, rather than the constructor.
  
  :Examples:
  
  {examples}
  
  {params}
class_docstr_tok: ["Directions","layer",".","Add","this","to","a",":","class",":","`","gmaps.Figure","`","instance","to","draw","directions",".","Use","the",":","func",":","`","gmaps.directions_layer","`","factory","function","to","instantiate","this","class",",","rather","than","the","constructor",".",":","Examples",":","{","examples","}","{","params","}"]
code: def _destructure_data(data):
      start = data[0]
      end = data[-1]
      waypoints = data[1:-1]
      return start, end, waypoints
  
file_path: gmaps/gmaps/directions.py
imports: import ipywidgets
  import warnings
  from traitlets import Bool, Unicode, CUnicode, List, Enum, observe, validate, Float
  from .None import geotraitlets
  from .maps import GMapsWidgetMixin
  from ._docutils import doc_subst
label_desc: Use image node_id 2 for calling the Directions obj's underlying member method code with example usage: obj._destructure_data(data) and returns: start,  end,  waypoints