<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;" class="">Pedro,<div class=""><br class=""></div><div class="">  There is some work-in-progress on the `edge_segment_lookup` branch that can give you some insight.  If you enable the `-DDEBUG_GEOMETRY` flag with `make`, then `osrm-extract` and `osrm-prepare` can be instructed (with a new command-line parameter) to dump out some geometry information in GeoJSON format.</div><div class=""><br class=""></div><div class="">  `osrm-extract` will dump out turn and stop-sign penalties with coordinates and bearings.</div><div class="">  `osrm-prepare` will dump out individual segment weights (deciseconds) and speed values used in the final routing graph.</div><div class=""><br class=""></div><div class="">  It's not super-easy to use, but it gives complete insight into the routing graph in a visual form.  You can load the files into QGIS for visualization.</div><div class=""><br class=""></div><div class="">daniel</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 11, 2015, at 4:32 PM, Sotorrio, Pedro <<a href="mailto:sotorrio1@llnl.gov" class="">sotorrio1@llnl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" class="">

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

_______________________________________________<br class="">OSRM-talk mailing list<br class=""><a href="mailto:OSRM-talk@openstreetmap.org" class="">OSRM-talk@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/osrm-talk<br class=""></div></blockquote></div><br class=""></div></body></html>