graphhopper/graphhopper-maps

define alias profile for specific custom model

Closed this issue · 0 comments

Just learned that we already support a nice way to create a profile on the client side only using a custom model without server-side support. You can do this when changing the config-local.js like this, which creates a custom_car profile:

profiles: { 
  car:{}, 
  custom_car:{ 
    custom_model: { 
      "speed": [{ "if": "true", "limit_to": "50" }] }, 
      "ch.disable": true, 
      "profile": "car" 
    } 
}