This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How do make nodes appear in `network_type=drive`?

0

Hello,

I created a lot of nodes, e.g. 9955159975. However they are not in the graph resulted by calling: ox.graph_from_bbox(-23.46, -23.75, -46.5, -46.77, network_type='drive', simplify=False).

I noticed that when changed to the network type all they are appearing. How can I change the nodes to show in the drive result?

asked 16 Aug '22, 14:54

vwraposo's gravatar image

vwraposo
11112
accept rate: 0%

edited 17 Aug '22, 09:49

scai's gravatar image

scai ♦
33.3k21309459

Could you explain in a bit more detail what your goal is here?

(16 Aug '22, 15:06) SomeoneElse ♦

We were adding points for restricted zones for trucks. And we want to take them into account when computing paths. It seems that now the API returned the correct points, there must be a long time for it to return or a long cache somewhere

(16 Aug '22, 16:05) vwraposo

Ah - so you're using some other piece of software (which you haven't told us about) which gets information from OSM and determines whether a particular route is suitable for a particular type of vehicle.

Because they have to create their own routing graph, routers tend to update slower than some other OSM consumers.

(16 Aug '22, 16:26) SomeoneElse ♦
1

This question seems to be about OSMnx. I've added the corresponding tag.

(17 Aug '22, 09:49) scai ♦

Source code available on GitHub .