GraphHopper.com | Forum | GitHub | Maps | Blog

New Feature: Type specific network_data_provider


#1

It is now much easier and cleaner to specifiy vehicle type specific network_data_providers. Instead of specifying it in configuration, you can specify it directly in vehicle type as follows:

"vehicle_types": [
    {
      "profile": "bike",
      "type_id": "bike",
      "speed_factor": 1,
      "network_data_provider": "openstreetmap",
      "consider_traffic":false,
      "capacity": [
        1
      ]
    },
    {
      "profile": "car",
      "type_id": "car",
      "speed_factor": 1,
      "network_data_provider": "tomtom",
      "consider_traffic": true,
      "capacity": [
        1
      ]
    }
  ]

In the above example, there are two vehicle types “car” and “bike”. Each type has its own “profile”, and it has its own “network_data_provider”. “bike” uses openstreetmap and “car” uses historical traffic data from TomTom.