Skip to content

faq 108534650

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Defining custom routes

by Celeste Manu on 2017-03-20 21:45:38


I read in the MATSim documentation book that we can define legs, which are which routes (links) to travel per activity. However, my plans.xml looks similar in form to that of the example in the book and it yields the following error:

Attribute "type" with value "links" must have a value from the list "dist trav-time num-nodes num-intersects ".


This happens at the line where I define the route. What causes this error? Here is my plans.xml:

<?xml version="1.0" ?>
 <!DOCTYPE plans SYSTEM "http://www.matsim.org/files/dtd/plans_v4.dtd">
 <plans>
 <person id="1">
 <plan>
 <act type="w" link="1" end_time="06:30"/>
 <leg mode="car">
 <route type="links">1 4 9 12 15</route>
 </leg>
 <act type="h" link="15"/>
 </plan>
 </person>
 </plans>

Comments: 1


Re: Defining custom routes

by Kai Nagel on 2017-03-21 06:56:58

Dear Celeste,

(1) Please try replacing "plans_v4" by "population_v6" (or, if that does not work, "_v5") and let us know if that works.

(2) Could you please tell us where you found that plans file with plans_v4.dtd so we can mark it as deprecated? Thanks.

Best wishes, Kai

Clone this wiki locally