original_docstring: Provides an array of raw node data (id, lat, lon, speed_limit) for all nodes in way relation
    
docstring: Provides an array of raw node data (id, lat, lon, speed_limit) for all nodes in way relation
docstring_tokens: Provides an array of raw node data ( id lat lon speed_limit ) for all nodes in way relation
code: def nodes_raw_data_array_for_wr(wr, drop_last=False):
    """Provides an array of raw node data (id, lat, lon, speed_limit) for all nodes in way relation
    """
    sl = wr.speed_limit
    data = np.array([(n.id, n.lat, n.lon, sl) for n in wr.way.nodes], dtype=float)
  
    # reverse the order if way direction is backwards
    if wr.direction == DIRECTION.BACKWARD:
      data = np.flip(data, axis=0)
  
    # drop last if requested
    return data[:-1] if drop_last else data
code_tokens: def nodes_raw_data_array_for_wr ( wr , drop_last = False ) : sl = wr . speed_limit data = np . array ( [ ( n . id , n . lat , n . lon , sl ) for n in wr . way . nodes ] , dtype = float ) if wr . direction == DIRECTION . BACKWARD : data = np . flip ( data , axis = 0 ) return data [ : - 1 ] if drop_last else data
short_docstring: Provides an array of raw node data (id, lat, lon, speed_limit) for all nodes in way relation
short_docstring_tokens: Provides an array of raw node data ( id lat lon speed_limit ) for all nodes in way relation
comment: """Provides an array of raw node data (id, lat, lon, speed_limit) for all nodes in way relation
    """$SEP$# reverse the order if way direction is backwards$SEP$# drop last if requested