Get lane info for all edges

I want to get the #lanes for each edge. I see DefaultTagParserFactory has lanes added.

I tried to add that in my code. But I get an error :’

Exception in thread “main” java.lang.IllegalArgumentException: Cannot find EncodedValue lanes in collection: [car_access, car_average_speed, car_subnetwork, osm_way_id, roundabout, road_class, road_class_link, road_environment, max_speed, road_access, ferry_speed]

Is there a way how I can get the info?

nodes_edges_cap.java (4.1 KB)

Yes you just need to add "lanes to graph.encoded_values in your config file.

1 Like

I added lanes in the config file and deleted the last graph folder. It works now.
Thank you so much.

1 Like