Difference between local docker and api playground

I am trying to sense check my local docker openrouteservice server against the API Playground (and interactive maps)

API playground gives duration of 639 seconds which are plausible… local docker version 491 seconds which are optimistic. What am I missing between default docker and how playground service is set up.

OSM map file is from geofabrik /europe/great-britain.html
Only changes to config are to up the limits on routes

    "services": {
      "matrix": {
        "enabled": true,
        "maximum_routes": 200000,
        "maximum_routes_flexible": 250,
        "maximum_search_radius": 5000,
        "maximum_visited_nodes": 200000,
        "allow_resolve_locations": true,
        "attribution": "openrouteservice org, OpenStreetMap contributors"
      },
:$ curl -X POST \
   'https://api.openrouteservice.org/v2/matrix/driving-car' \
   -H 'Content-Type: application/json; charset=utf-8' \
   -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
   -H 'Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
   -d '{"locations":[[-2.107554,52.585832],[-2.194104,52.583795]]}'
{"durations":[[0.0,639.88],[598.11,0.0]],"destinations":[{"location":[-2.107771,52.585976],"snapped_distance":21.68},{"location":[-2.193393,52.583903],"snapped_distance":49.53}],"sources":[{"location":[-2.107771,52.585976],"snapped_distance":21.68},{"location":[-2.193393,52.583903],"snapped_distance":49.53}],"metadata":{"attribution":"openrouteservice | OpenStreetMap contributors","service":"matrix","timestamp":1644330179682,"query":{"locations":[[-2.107554,52.585832],[-2.194104,52.583795]],"profile":"driving-car","responseType":"json"},"engine":{"version":"6.7.0","build_date":"2022-01-10T10:41:35Z","graph_date":"2022-01-17T04:44:01Z"}}}
:$ curl xxxxxxxxx/status
{"engine":{"version":"6.7.0","build_date":"2022-02-08T14:20:11Z"},"services":["routing","isochrones","matrix","mapmatching"],"languages":["de","de-de","en","en-us","es","es-es","fr","fr-fr","gr","gr-gr","he","he-il","hu","hu-hu","id","id-id","it","it-it","ja","ja-jp","ne","ne-np","nl","nl-nl","pl","pl-pl","pt","pt-pt","ru","ru-ru","tr","tr-tr","zh","zh-cn"],"profiles":{"profile 1":{"profiles":"driving-car","creation_date":"","storages":{"WayCategory":{},"HeavyVehicle":{},"WaySurfaceType":{},"RoadAccessRestrictions":{"use_for_warnings":"true"}},"limits":{"maximum_distance":100000,"maximum_distance_dynamic_weights":100000,"maximum_distance_avoid_areas":100000,"maximum_waypoints":50}}}}
:$ curl -X POST \
   'http://localhost:8080/ors/v2/matrix/driving-car' \
   -H 'Content-Type: application/json; charset=utf-8' \
   -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
   -d '{"locations":[[-2.107554,52.585832],[-2.194104,52.583795]]}'
{"durations":[[0.0,491.46],[478.72,0.0]],"destinations":[{"location":[-2.107771,52.585976],"snapped_distance":21.68},{"location":[-2.193393,52.583903],"snapped_distance":49.53}],"sources":[{"location":[-2.107771,52.585976],"snapped_distance":21.68},{"location":[-2.193393,52.583903],"snapped_distance":49.53}],"metadata":{"attribution":"openrouteservice, OpenStreetMap contributors","service":"matrix","timestamp":1644330179906,"query":{"locations":[[-2.107554,52.585832],[-2.194104,52.583795]],"profile":"driving-car","responseType":"json"},"engine":{"version":"6.7.0","build_date":"2022-02-08T14:20:11Z","graph_date":"2022-02-08T12:29:51Z"}}}

Thanks in advance
Hector

1 Like

Could I get a copy of the app.config that is used on the API Playground to compare to my local docker build

** SOLUTION **
Bit of trial and error
Docker default build app.config under encoder_options has use_acceleration=false
Setting this to use_acceleration=true yields same routes and durations

2 Likes