Define and use custom profiles
masterProfiles determine how the routing engine behaves (e.g., which tracks are accessible). Profiles consist of a name, turn_costs (including vehicle_types like train, light_rail, tram, subway and u_turn_costs), and custom_model_files.
Custom model files are searched in src/main/resources/com/graphhopper/custom_profiles by default. You can specify an external directory for these models to avoid recompiling after changes:
graphhopper:
custom_models.directory: path/to/your/custom_models_directory