title: OSMNX KeyError: 'x' when trying to get_nearest_nodes()
body: <p>I currently have a process where I</p>
  <ol>
  <li>Download Open Street data using ox.geocode_to_gdf()</li>
  <li>Get the Geopackage edges and nodes using and use gpd.overlay() to edit the edges and nodes based on another map</li>
  <li>Convert edited edges back to OSMNX as a graph using ox.graph_from_gdfs()</li>
  </ol>
  <p>At this stage, I have a graph (sample <a href="http://www.filedropper.com/gpost200curcentre" rel="nofollow noreferrer">here</a>)
  where I would like to use to estimate the shortest path among some points. I have the Easting and Northing of these points and I am trying to get he nearest nodes to these cooridnates using</p>
  <pre><code>nodes_flood = ox.distance.get_nearest_nodes(g_post_200_Cur_centre, Easting, Northing)
  </code></pre>
  <p>so that I can run nx.shortest_path() with the graph and destination nodes. But I get an error message</p>
  <pre><code>File &quot;&lt;ipython-input-74-ed9774662a83&gt;&quot;, line 1, in &lt;module&gt;
  nodes_flood = ox.distance.get_nearest_nodes(g_post_200_Cur_centre, Easting, Northing)
  
  File &quot;/Users/opt/anaconda3/envs/Kinshasa/lib/python3.7/site-packages/osmnx/distance.py&quot;, line 256, in get_nearest_nodes
  nn = [get_nearest_node(G, (y, x), method=&quot;haversine&quot;) for x, y in zip(X, Y)]
  
  File &quot;/Users/opt/anaconda3/envs/Kinshasa/lib/python3.7/site-packages/osmnx/distance.py&quot;, line 256, in &lt;listcomp&gt;
  nn = [get_nearest_node(G, (y, x), method=&quot;haversine&quot;) for x, y in zip(X, Y)]
  
  File &quot;/Users/opt/anaconda3/envs/Kinshasa/lib/python3.7/site-packages/osmnx/distance.py&quot;, line 138, in get_nearest_node
  df = pd.DataFrame(coords, columns=[&quot;node&quot;, &quot;x&quot;, &quot;y&quot;]).set_index(&quot;node&quot;)
  
  File &quot;/Users/opt/anaconda3/envs/Kinshasa/lib/python3.7/site-packages/pandas/core/frame.py&quot;, line 563, in __init__
  data = list(data)
  File &quot;/Users/opt/anaconda3/envs/Kinshasa/lib/python3.7/site-packages/osmnx/distance.py&quot;, line 137, in &lt;genexpr&gt;
  coords = ((n, d[&quot;x&quot;], d[&quot;y&quot;]) for n, d in G.nodes(data=True))
  
  KeyError: 'x'
  </code></pre>
  <p>Not sure what is causing this. I have OSMNX v1.0.</p>