Area doesn't work

Hello, that’s my profile :

 profiles:
    - name: car
      vehicle: car
      weighting: custom
      custom_model: {
        "speed": [
          {
            "if": "in_custom1",
            "multiply_by": 0.2
          }
        ],
        "areas": {
          "custom1": {
            "type": "Feature",
            "id": "something",
            "properties": {},
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [
                  [
                      51.1492036,16.9587944
                  ],
                  [
                      51.1322163,17.0963743
                  ],
                  [
                      51.0738985,17.0724474
                  ],
                  [
                      51.0867032,16.9526022
                  ],
                  [
                      51.1492036,16.9587944
                  ]
                ]
              ]
            }
          }
        },
        "distance_influence": 0
      }

The problem is, that nothing happens when I change speed in my ‘custom1’ area. I have some route in that area, and with or without that change I have the same result. I don’t have any errors.

Please note that when using the POST request all coordinates are in an array and of the form [longitude, latitude] and not like in a “String form” like for the GET request point=latitude,longitude (please note the swapped order!).

This also applies to the area which is a GeoJSON.
See e.g. the area example in this blog post: Examples For Customizable Routing - GraphHopper Directions API

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.