pandana/loaders/osm.py
def process_node(e):
    """
    Process a node element entry into a dict suitable for going into
    a Pandas DataFrame.

    Parameters
    ----------
    e : dict
    Returns
    -------
    node : dict
    """

    uninteresting_tags = {
        'source',
        'source_ref',
        'source:ref',
        'history',
        'attribution',
        'created_by',
        'tiger:tlid',
        'tiger:upload_uuid',
    }

    node = {
        'id': e['id'],
        'lat': e['lat'],
        'lon': e['lon']
    }

    if 'tags' in e:
        for t, v in list(e['tags'].items()):
            if t not in uninteresting_tags:
                node[t] = v

    return node
def process_node(e):
    uninteresting_tags = {
        'source',
        'source_ref',
        'source:ref',
        'history',
        'attribution',
        'created_by',
        'tiger:tlid',
        'tiger:upload_uuid',
    }

    node = {
        'id': e['id'],
        'lat': e['lat'],
        'lon': e['lon']
    }

    if 'tags' in e:
        for t, v in list(e['tags'].items()):
            if t not in uninteresting_tags:
                node[t] = v

    return node
def process_node ( e ) : uninteresting_tags = { 'source' , 'source_ref' , 'source:ref' , 'history' , 'attribution' , 'created_by' , 'tiger:tlid' , 'tiger:upload_uuid' , } node = { 'id' : e [ 'id' ] , 'lat' : e [ 'lat' ] , 'lon' : e [ 'lon' ] } if 'tags' in e : for t , v in list ( e [ 'tags' ] . items ( ) ) : if t not in uninteresting_tags : node [ t ] = v return node
Process a node element entry into a dict suitable for going into
    a Pandas DataFrame.

    Parameters
    ----------
    e : dict
    Returns
    -------
    node : dict
Process a node element entry into a dict suitable for going into a Pandas DataFrame .