GraphHopper.com | Forum | GitHub | Maps | Blog

New feature: max distance constraint

announcements

#1

You can now assign a max distance to your vehicles. Just add max_distance (in meters) to your vehicle specification like this:

vehicles": [
    {
      "vehicle_id": "my_vehicle",
      "start_address": {
        "location_id": "berlin",
        "lon": 13.406,
        "lat": 52.537
      },
      "max_distance":100000
    }
]

This means that this vehicle cannot go more than 100km (or 100000m). It is a beta feature, therefore you cannot find it in the official documentation yet.


#2

Can we add this to the documentation or still too unstable?


#3

I just add this to the doc.