Statistical traffic data sources that can be used with ORS

We have our own instance of ORS up and running. We are looking at incorporating traffic data as mentioned in Can ORS support traffic?.

Is HERE the only provider that can be incorporated into ORS or is there other that use the same format?

Hi @damienJones,

no currently only HERE data can be used.
See e.g. Can ORS support traffic? - #2 by Jules

Best regards

Hi @damienJones,

I’d like to include my here_traffic dataset in the ORS graph. This still worked in version v9.0.0. In versions later than v9.0.0, it no longer seems to work (e.g., v9.3.1 or v9.7.1). Was there a breaking change in the configuration?

Best regards

Hi @FeliPaul,

thanks for your feedback! :heart:

I don’t recall any breaking changes since version v9.0.0 concerning traffic. In fact, there are two integration tests configured against a sample traffic dataset, and these haven’t been touched recently :thinking:

Could you maybe describe in more detais what you observe and what exactly does not work for you? :folded_hands:

Cheers!
Andrzej

1 Like

Hi @andrzej,

thank you for your quick response :folded_hands:

This was yet another classic case where the problem is sitting in front of the screen.
While refactoring the config YAML using an LLM, the “HereTraffic.enabled = true” parameter, along with other HereTraffic.xxx parameters, was moved to the default block. However, a profile-specific HereTraffic.log_location was defined further down in my config file. This appears to have overwritten all HereTraffic values from the default block.

With these configs it logs sth. like “HereTraffic not enabled”

profile_default:
  build:
    ext_storages:
      HereTraffic:
        enabled: true
        radius: 150
        streets: Streets.shp
        ref_pattern: ref_pattern.csv
        pattern_15min: pattern_kph_15min.csv
        output_log: true

...
profiles:
  driving-car:
    build:
      ext_storages:
        HereTraffic:
          log_location: '/home/ors/logs/ors-car_traffic_log'
  driving-hgv:
    build:
      ext_storages:
        HereTraffic:
          log_location: '/home/ors/logs/ors-hgv_traffic_log'

Fixed configs to build graphs with Here data:

profile_default: #sameAsAboveExample

...

profiles:
  driving-car:
    enabled: true
    encoder_name: 'driving-car'
    build:
      ext_storages:
        HereTraffic:
          enabled: true
          radius: 150
          streets: 'Streets.shp'
          ref_pattern: 'ref_pattern.csv'
          pattern_15min: 'pattern_kph_15min.csv'
          output_log: true
          log_location: '/home/ors/logs/ors-car_traffic_log'
  driving-hgv:
    enabled: true
    encoder_name: 'driving-hgv'
    build:
      ext_storages:
        HereTraffic:
          enabled: true
          radius: 150
          streets: 'Streets.shp'
          ref_pattern: 'ref_pattern.csv'
          pattern_15min: 'pattern_kph_15min.csv'
          output_log: true
          log_location: '/home/ors/logs/ors-hgv_traffic_log'

Is this behavior normal?

Best regards