I want to find the name of the street between 2 nodes. I did some research and with Networkx I think it is possible. Following this question's answer: OSMNx : get coordinates of nodes using OSM id
I can see that finding for example, some node's coordinates I just have to write G.nodes[id]['x]. However I try to find the name between 2 streets like this: (Assuming G is my graph)
G.nodes[id_src][id_dst]['name']
And it returns this error:
KeyError: 667410900
I assume this number is the node's ID.
How can I get the street name?