book icon indicating copy to clipboard operation
book copied to clipboard

`osmnx` version issues

Open darribas opened this issue 3 years ago • 2 comments

I'm currently getting the following error in chapter 12 when trying to retrieve data from OSM:

image

This is on gds_py:7.0 and I suspect it has to do with a change in the OSM API rather than a osmnx version issue.

Taggin @gboeing in case it's a temporary fix. Otherwise, we can adapt to the new structure.

darribas avatar May 03 '22 20:05 darribas

Can you give me a reproducible snippet for this (definition of airbnbs_ch)? It looks like this will be an easy fix and I can just provide you the fixed code.

gboeing avatar May 04 '22 03:05 gboeing

Just eyeballing it, it looks like it's because you're requesting osmid from the DataFrame's columns, but we started indexing by that instead a while back (the row labels are OSM IDs).

gboeing avatar May 04 '22 03:05 gboeing