<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Thanks a lot, Daniel!</div>
<div><br>
</div>
<div>—Pedro</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Daniel Hofmann <<a href="mailto:hofmann@mapbox.com">hofmann@mapbox.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>Mailing list to discuss Project OSRM <<a href="mailto:osrm-talk@openstreetmap.org">osrm-talk@openstreetmap.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, November 11, 2015 at 1:26 PM<br>
<span style="font-weight:bold">To: </span>Mailing list to discuss Project OSRM <<a href="mailto:osrm-talk@openstreetmap.org">osrm-talk@openstreetmap.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [OSRM-talk] Extended graph output file<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>The edge-expanded graph already gets written to disk; this was introduced in the following commit:<br>
<br>
<a href="https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640">https://github.com/Project-OSRM/osrm-backend/commit/e45656e5bfb0b61a2859f0c754e66322996f1640</a><br>
<br>
</div>
which is not yet in the latest release, so you have to build from the develop branch.<br>
<br>
<br>
</div>
If you search for ebg you will see related files:<br>
<br>
<a href="https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg">https://github.com/Project-OSRM/osrm-backend/search?utf8=%E2%9C%93&q=ebg</a><br>
<br>
</div>
<br>
</div>
Word of caution: the serialization in OSRM is done by just dumping internal datastructures in binary format.<br>
</div>
This is neither a portable between operating systems, compilers or even standard libraries, nor a stable format, and in particular not intended to be read from other programs.<br>
</div>
<div>You would have to get the data structure layout right, in order to make use of the ebg file from other programs.<br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Nov 11, 2015 at 4:15 PM, Sotorrio, Pedro <span dir="ltr">
<<a href="mailto:sotorrio1@llnl.gov" target="_blank">sotorrio1@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hello,</div>
<div><br>
</div>
<div>I’m new in OSRM but my understanding is that the graph output file in OSRM is a binary file, correct?</div>
<div><br>
</div>
<div>Is there a way to write out the edged expanded graph (with turns) to a readable file?</div>
<div><br>
</div>
<div>Thanks a lot in advance,</div>
<div><br>
</div>
<div>Pedro</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
_______________________________________________<br>
OSRM-talk mailing list<br>
<a href="mailto:OSRM-talk@openstreetmap.org">OSRM-talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/osrm-talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/osrm-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span>
</body>
</html>