Parse node coordinates from OSM response. Some nodes are
    standalone points of interest, others are vertices in 
    polygonal (areal) POIs.
    
    Parameters
    ----------
    osm_response : string
        OSM response JSON string
    
    Returns
    -------
    coords : dict
        dict of node IDs and their lat, lon coordinates

def parse_nodes_coords(osm_response):
    """
    Parse node coordinates from OSM response. Some nodes are
    standalone points of interest, others are vertices in 
    polygonal (areal) POIs.
    
    Parameters
    ----------
    osm_response : string
        OSM response JSON string
    
    Returns
    -------
    coords : dict
        dict of node IDs and their lat, lon coordinates
    """

    coords = {}
    for result in osm_response['elements']:
        if 'type' in result and result['type'] == 'node':
            coords[result['id']] = {'lat': result['lat'],
                                    'lon': result['lon']}
    return coords