Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add write support for facilities.xml #123

Open
gac55 opened this issue Feb 9, 2022 · 2 comments
Open

Add write support for facilities.xml #123

gac55 opened this issue Feb 9, 2022 · 2 comments

Comments

@gac55
Copy link

gac55 commented Feb 9, 2022

Facility information is currently present within the plans.xml output.

There are some applications which make use of a simplified summary facilities.xml output, which is defined as:

A Facility is a (Basic)Location ("getCoord") with an Id ("getId") that is connected to a Link ("getLinkId").

As per this

@gac55
Copy link
Author

gac55 commented Feb 9, 2022

@gac55
Copy link
Author

gac55 commented Feb 9, 2022

A workaround for this is to use MATSim itself to extract facilities from the plans output and write facilities. There are some options, requiring consideration and clarification that our method for facility sampling is correctly understood by MATSim.

Speaking with @Theodore-Chatziioannou , we believe that onePerActivityLocationInPlansFile is appropriate.

The configuration in question:

<module name="facilities" >
		<!-- This defines how facilities should be created. Possible values: none fromFile setInScenario onePerActivityLinkInPlansFile onePerActivityLinkInPlansFileExceptWhenCoordinatesAreGiven onePerActivityLocationInPlansFile  -->
		<param name="facilitiesSource" value="onePerActivityLocationInPlansFile" />
		<!-- A prefix to be used for auto-generated IDs. -->
	</module>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant