# Which approach for matrix of road journey times (i.e. routing-based distances)?

**URL:** <https://discourse.julialang.org/t/which-approach-for-matrix-of-road-journey-times-i-e-routing-based-distances/44407>\
**Category:** General Usage\
**Tags:** question, gis\
**Created:** [August 6, 2020, 9:16am UTC](https://discourse.julialang.org/t/which-approach-for-matrix-of-road-journey-times-i-e-routing-based-distances/44407 "2020-08-06T09:16:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [August 6, 2020, 9:16am UTC](https://discourse.julialang.org/t/which-approach-for-matrix-of-road-journey-times-i-e-routing-based-distances/44407/1 "2020-08-06T09:16:30Z")

</div>

I need to get a matrix of road journey times by geographical coordinate pairs.

I have colleagues that are using for this the R package [osrm](https://cran.r-project.org/web/packages/osrm/index.html) that in turn use the demo public server of [project osrm](http://project-osrm.org/), where they run their matrices in batch to remain below the limits of the demo server.

I had a quick look and their routing algorithm seems very fast…  
I wonder which would be the best approach in Julia: install an orsm server (C++ based) and made an interface to it in Julia or exploit a routing library in some Julia package (any?) and keep an “all-julia approach”.

Does anyone has experiences with routing libraries in Julia and how they compare with osrm ?

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [August 6, 2020, 11:43am UTC](https://discourse.julialang.org/t/which-approach-for-matrix-of-road-journey-times-i-e-routing-based-distances/44407/2 "2020-08-06T11:43:27Z")

</div>

I did play a bit with `OpenStreetMapX` but its functions `OpenStreetMapX.shortest_route` and `OpenStreetMapX.fastest_route` don’t seems to be viable on even regional maps (and I understood the default speed seems fixed to `SPEED_ROADS_URBAN`).

So, basically, there seems to be no Julia routing library for regional/national journeys. I think such library would have to use some heuristic that exploit lot of domain specific engineering.
