<div dir="ltr">Hi Gandalf,<div><br></div><div> 1) If you edit `car.lua`, you can turn off the "exclusions", </div><div> which will save some memory (perhaps 20%). Other than that, </div><div> not really. If you pre-process using `car.lua`, you'll only get</div><div> datafiles that are useful for car driving, it doesn't care about</div><div> truck/walk/other restrictions. In theory yes, much of the data</div><div> isn't needed, but OSRM currently doesn't support *not* loading</div><div> everything.</div><div><br></div><div> 2) There is no built-in isochrone service. I assume you're looking</div><div> for GeoJSON polygons that contour away from the start point?</div><div> There are some WIP pull requests for isochrones (take a look</div><div> at the active pull requests), but nothing in the main codeline yet.</div><div> You can also generate them client-side using an approach like this:</div><div> <a href="https://blog.mapbox.com/add-isochrones-to-your-next-application-e9e84a62345f">https://blog.mapbox.com/add-isochrones-to-your-next-application-e9e84a62345f</a></div><div> which uses the `table` plugin, instead of the route plugin.</div><div><br></div><div> In general though, consider simply requesting the actual routes from OSRM -</div><div> they're generated pretty fast, even for interactive use.</div><div><br></div><div> 3) The simplest way is to pre-merge the OSM datafiles using something like</div><div> <a href="http://docs.osmcode.org/osmium/latest/osmium-merge.html">http://docs.osmcode.org/osmium/latest/osmium-merge.html</a></div><div><br></div><div> The only alternative would be to run several OSRM servers on different</div><div> HTTP ports, and create a proxy in front that looks at the request coordinates</div><div> and directs each request to the appropriate map. No such thing comes</div><div> with OSRM however, you'll need to build it yourself.</div><div><br></div><div> 4) The osrm-routed memory usage depends on the size of your map. For the planet,</div><div> with the car profile, it's in the order of 60-70GB.</div><div><br></div><div> 5) Yes, `osrm-routed` supports seamless dataswaps. Use `osrm-datastore <filename.osrm>`</div><div> to load your data into shared memory, then run `osrm-routed -s` to tell `osrm-routed`</div><div> to look in shared memory instead of loading files itself.</div><div> You can then replace the shared memory data with another invocation of</div><div> `osrm-datastore <newfiles.osrm>`, and `osrm-routed` will seamlessly swap to the</div><div> new dataset.</div><div> Note that you will need sufficient RAM to hold both sets of data in memory during</div><div> the swapover.</div><div><br></div><div>daniel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 22, 2017 at 11:09 AM, Gandalf Corvotempesta <span dir="ltr"><<a href="mailto:gandalf.corvotempesta@gmail.com" target="_blank">gandalf.corvotempesta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi to all<br>
for a project, I have to calculate distance and travel time between 2 points.<br>
I've tried, with success, OSRM. Some questions:<br>
<br>
1) can I strip down as much as possible to keep the memory usage low ?<br>
I don't need any restricted turns for trucks and so on,<br>
the only needed profile is "car" and I only need to fetch distance and<br>
time, even directions are not needed.<br>
<br>
2) would be possible to return a GeoJSON (or any other format) with<br>
isochrones from a defined point ? I would use this to pre-calculate an<br>
estimated travel time between points.<br>
<br>
3) how can I load multiple maps with osrm-routed ?<br>
<br>
4) which is the memory usage for osrm-routed ? I've pre-processed the<br>
maps on a huge computer and then i'm running osrm-routed on a server.<br>
Is that the sum of all *.osrm.* files ?<br>
<br>
5) in case of map updates, can I "reload" osrm-routed without restarting it ?<br>
<br>
Thank you in advange.<br>
<br>
______________________________<wbr>_________________<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.<wbr>org/listinfo/osrm-talk</a><br>
</blockquote></div><br></div>