# Can ORS support traffic?

**URL:** <https://ask.openrouteservice.org/t/can-ors-support-traffic/6139>\
**Category:** openrouteservice\
**Created:** [May 17, 2024, 2:32am UTC](https://ask.openrouteservice.org/t/can-ors-support-traffic/6139 "2024-05-17T02:32:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcella0202](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/m/c4cdca/32.png) [@Marcella0202](https://ask.openrouteservice.org/u/Marcella0202)\
**Post date:** [May 17, 2024, 2:32am UTC](https://ask.openrouteservice.org/t/can-ors-support-traffic/6139/1 "2024-05-17T02:32:03Z")

</div>

Hey i have project to return distance and duration based on ORS API. I do research and I found that ORS doesn’t support traffic in real time so the duration should be not very accurate (correct me if im wrong). Is there any solution to solve that problem? I mean, i still want to show the duration from ORS API but maybe any methods that I can go for it so the duration can consider with traffic. Thanks for help

---

<div class="post-metadata">

**Author:** ![Jules](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jules/32/187_2.png) [@Jules](https://ask.openrouteservice.org/u/Jules)\
**Post date:** [May 23, 2024, 2:09pm UTC](https://ask.openrouteservice.org/t/can-ors-support-traffic/6139/2 "2024-05-23T14:09:32Z")

</div>

@Marcella0202 thank you for your request.

Providing live traffic is money intensive and not coverable with our free API quotas (currently). If you would like to use statistical traffic, we have an integration of HERE statistical traffic that you can use with your own hosted openrouteservice instance. You would need to buy the data from Here, of course. Be aware, since only very few have the resources to even buy statistical traffic data, we did not have many requirements to document this well in our public documentation.

Please reach out to us if you’re planning to use it, and we can see how to show you in the right direction.

–  
Julian

---

<div class="post-metadata">

**Author:** ![FeliPaul](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/felipaul/32/3432_2.png) [@FeliPaul](https://ask.openrouteservice.org/u/FeliPaul)\
**Post date:** [January 8, 2025, 6:59am UTC](https://ask.openrouteservice.org/t/can-ors-support-traffic/6139/3 "2025-01-08T06:59:54Z")

</div>

Hello @Jules, I am in possession of the Here\_Traffic data and have been able to use it successfully as ext\_storage in ORS v6.6.4. I would currently like to upgrade to ORS v9.0.0. I have not found any documentation on how to use the data. I would like to be able to continue using it to perform statistical routing.

Best regards and thanks in advance  
Felix

---

<div class="post-metadata">

**Author:** ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)\
**Post date:** [January 9, 2025, 10:02am UTC](https://ask.openrouteservice.org/t/can-ors-support-traffic/6139/4 "2025-01-09T10:02:49Z")

</div>

Hi @FeliPaul,

check our [testing configuration](https://github.com/GIScience/openrouteservice/blob/af383a3581bbda852b58971c490fc2e5d3e80bb3/ors-api/src/test/resources/application-test.yml#L94-L101) which includes a dummy data set.

Have you tried defining an extended storage in your config?  
You can find config examples in yml format eg. in our [config migration tool](https://github.com/GIScience/ors-config-migration/blob/9af2c4a6c7f151d040873c4d94cb6565471da612/config-files-yaml/application-test.yml).

If you are still having issues with getting it to work. Please provide your config an log outputs in case of errors.

Best regards

---

<div class="post-metadata">

**Author:** ![FeliPaul](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/felipaul/32/3432_2.png) [@FeliPaul](https://ask.openrouteservice.org/u/FeliPaul)\
**Post date:** [February 18, 2025, 1:28pm UTC](https://ask.openrouteservice.org/t/can-ors-support-traffic/6139/5 "2025-02-18T13:28:18Z")

</div>

Hi @amandus,

thank you very much for your tip. With the following configuration snippet, I was able to successfully create the graph including the traffic data.

ORS Version: v9.0.0

Excerpt from my `ors-config.yml`:

```auto
---
ors:
  engine:
    profiles:
      driving-car:
        build:
          ext_storages:
            HereTraffic:
              enabled: true
              radius: 150
              streets: '/home/ors/files/here_traffic/Streets.shp'
              ref_pattern: '/home/ors/files/here_traffic/ref_pattern.csv'
              pattern_15min: '/home/ors/files/here_traffic/pattern_15min.csv'
              output_log: true
              log_location: '/home/ors/logs'

```

Either I have overlooked this so far or the [documentation](https://giscience.github.io/openrouteservice/run-instance/configuration/engine/profiles/build#ext_storages:~:text=the%20routing%20graphs-,ext_storages,-object) and the [migration tool](https://github.com/GIScience/ors-config-migration/blob/main/config-files-yaml/application-test.yml#L76-L83) are incorrect in the point that the external storage (such as “HereTraffic”) must not be used under `ors.engine.profiles.*.ext_storages.HereTraffic`, but under `ors.engine.profiles.*.build.ext_storages.HereTraffic`.

After I indented “ext\_storages:” below the “build:” key, the traffic data was successfully used to build the routing graph.

* * *

Off-topic: There is a typo “\_” instead of “-” in the link url of the [ext\_storages](https://giscience.github.io/openrouteservice/run-instance/configuration/engine/profiles/build#ext_storages:~:text=object-,External%20storages,-for%20returning%20extra) documentation.

Actual:

```auto
<a href="#ext_storages">External storages</a>

```

Target:

```auto
<a href="#ext-storages">External storages</a>

```

Best regards
