I am new to OSMnx and to NetworkX packages in python.
Let's say I have the following example:
import numpy as np
import osmnx as ox
import geopandas as gpd
import networkx as nx
place_name = 'Fefan'
graph = ox.graph_from_place(place_name, network_type='drive')
graph_proj = ox.project_graph(graph)
nodes_proj= ox.graph_to_gdfs(graph_proj, nodes=True, edges=False)
ox.plot_graph(graph_proj)
As you can see, I only obtain the two nodes for this place. I guess that's how it is in OSM. Is there any way I can manually add random nodes in this graph, especially on the edges of it?
For a broader picture. I need the nodes to calculate some distance matrices between some buildings, which are not shown here.
Best,
