Hello,
Your OSM network most likely contains roads (edges) that do not permit cars
(i.e. bicycle paths, footpaths, train tracks).
To ensure that these edges are not selecting by od2trips as
origins/destinations for cars, add the option
'--vclass passenger' to your edgesInDistrict.py call (step 3)

Even then it may happen that routes are not found whenever od2trips picks a
dead-end edge as origin (or an unreachable edge as destination).
You can work around this by adding option --ignore-errors in step 5. (If
many trips are affected, scale up the OD matrix to compensate).

regards,
Jakob

Am Mi., 22. Sept. 2021 um 05:21 Uhr schrieb Amanda Romano <
[email protected]>:

> Dear All,
>
> I am trying to generate the routes file, using the duarouter command. But
> the error is appearing:
>
> Vehicle 'xx' is not allowed to depart on edge 'xxxxxxxxxxxxxxxx'
> The vehicle 'xx' has no valid route
>
> The step by step of what I did:
>
> 0 - extract the network from openstreetmap (osm file - map.osm)
> I made the file with the data from the O/D matrix (OD_file.od)
> od2trips.config.xml
> duarcfg_file.trips2routes.duarcfg
> config_file.sumocfg
>
> 1) Using netconvert, I converted the osm file to net.xml
> netconvert --osm-files map.osm -o map.net.xml
>
> 2) Using Polyconvert, I converted the shapefile to a polygon file:
> polyconvert --net-file map.net.xml --shapefile-prefixes SHPFILE
> --shapefile.id-column ID --shapefile.add-param true --shapefile.fill false
> --
>
> shapefile.traditional-axis-mapping true -o SHPFILE.poly.xml --type taz
>
> 3) I converted the polygon file to TAZ file (districts.taz.xml):
> python edgesInDistricts.py -n map.net.xml -t SHPFILE.poly.xml
>
> 4)Using od2trips, I created the trips:
> od2trips -c od2trips.config.xml -n districts.taz.xml -d OD_file.od -o
> od_file.odtrips.xml
>
> 5)And using duarouter, I wanted to create the routes:
> duarouter -c duarcfg_file.trips2routes.duarcfg
>
> Could someone please help me why I can't generate the routes? How to solve
> this error:
> Vehicle 'xx' is not allowed to depart on edge 'xxxxxxxxxxxxxxxx'
> The vehicle 'xx' has no valid route
>
> I can make all files available on the drive if necessary.
>
> Thank you!
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>  Livre
> de vĂ­rus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>.
> <#m_-4571766099469985727_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to