code: def get_node(element):
      
  
      node = {}
      node['y'] = element['lat']
      node['x'] = element['lon']
      node['osmid'] = element['id']
      if 'tags' in element:
          for useful_tag in settings.useful_tags_node:
              if useful_tag in element['tags']:
                  node[useful_tag] = element['tags'][useful_tag]
      return node
docs: Convert an OSM node element into the format for a networkx node.
  
      Parameters
      ----------
      element : dict
          an OSM node element
  
      Returns
      -------
      dict