From f474257fa92b3ede0301dc510be6aee407c419d3 Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 17 Aug 2024 22:52:24 +0200 Subject: [PATCH] add encoded values to info about custom model usage, fixes #3041 --- core/src/main/resources/com/graphhopper/custom_models/bike.json | 1 + core/src/main/resources/com/graphhopper/custom_models/bus.json | 1 + core/src/main/resources/com/graphhopper/custom_models/car.json | 1 + .../src/main/resources/com/graphhopper/custom_models/car4wd.json | 1 + core/src/main/resources/com/graphhopper/custom_models/foot.json | 1 + core/src/main/resources/com/graphhopper/custom_models/hike.json | 1 + .../main/resources/com/graphhopper/custom_models/motorcycle.json | 1 + core/src/main/resources/com/graphhopper/custom_models/mtb.json | 1 + .../main/resources/com/graphhopper/custom_models/racingbike.json | 1 + core/src/main/resources/com/graphhopper/custom_models/truck.json | 1 + 10 files changed, 10 insertions(+) diff --git a/core/src/main/resources/com/graphhopper/custom_models/bike.json b/core/src/main/resources/com/graphhopper/custom_models/bike.json index 4e38dcbb591..875529a77aa 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/bike.json +++ b/core/src/main/resources/com/graphhopper/custom_models/bike.json @@ -1,5 +1,6 @@ // to use this custom model you need to set the following option in the config.yml // graph.elevation.provider: srtm # enables elevation +// graph.encoded_values: bike_priority, bike_access, roundabout, bike_average_speed, average_slope // profiles: // - name: bike // custom_model_files: [bike.json, bike_elevation.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/bus.json b/core/src/main/resources/com/graphhopper/custom_models/bus.json index 3a1e1e4f9f5..b062a300623 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/bus.json +++ b/core/src/main/resources/com/graphhopper/custom_models/bus.json @@ -1,4 +1,5 @@ // to use this custom model you need to set the following option in the config.yml +// graph.encoded_values: max_weight, max_width, max_height, bus_access, road_class, car_average_speed // profiles: // - name: bus // custom_model_files: [bus.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/car.json b/core/src/main/resources/com/graphhopper/custom_models/car.json index aa864585f0d..93027b5dbf4 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/car.json +++ b/core/src/main/resources/com/graphhopper/custom_models/car.json @@ -1,4 +1,5 @@ // to use this custom model you need to set the following option in the config.yml +// graph.encoded_values: car_access, car_average_speed // profiles: // - name: car // turn_costs: diff --git a/core/src/main/resources/com/graphhopper/custom_models/car4wd.json b/core/src/main/resources/com/graphhopper/custom_models/car4wd.json index 541c742f963..4b5fde56da0 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/car4wd.json +++ b/core/src/main/resources/com/graphhopper/custom_models/car4wd.json @@ -1,4 +1,5 @@ // to use this custom model you need to set the following option in the config.yml +// graph.encoded_values: car_access, car_average_speed, track_type // profiles: // - name: car4wd // custom_model_files: [car4wd.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/foot.json b/core/src/main/resources/com/graphhopper/custom_models/foot.json index 0a861f1a932..de22e38f87a 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/foot.json +++ b/core/src/main/resources/com/graphhopper/custom_models/foot.json @@ -1,5 +1,6 @@ // to use this custom model you need to set the following option in the config.yml // graph.elevation.provider: srtm # enables elevation +// graph.encoded_values: foot_access, hike_rating, foot_priority, foot_average_speed, average_slope // profiles: // - name: foot // custom_model_files: [foot.json, foot_elevation.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/hike.json b/core/src/main/resources/com/graphhopper/custom_models/hike.json index c201a6ab145..d133dbac13b 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/hike.json +++ b/core/src/main/resources/com/graphhopper/custom_models/hike.json @@ -1,5 +1,6 @@ // to use this custom model you set the following option in the config.yml: // graph.elevation.provider: srtm # enables elevation +// graph.encoded_values: foot_access, hike_rating, foot_priority, foot_network, foot_average_speed, average_slope // profiles: // - name: hike // custom_model_files: [hike.json, foot_elevation.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/motorcycle.json b/core/src/main/resources/com/graphhopper/custom_models/motorcycle.json index a686611ceba..3c3f51de8ad 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/motorcycle.json +++ b/core/src/main/resources/com/graphhopper/custom_models/motorcycle.json @@ -1,5 +1,6 @@ // to use this custom model you need to set the following option in the config.yml // graph.urban_density.threads: 4 # expensive to calculate but very useful +// graph.encoded_values: car_access, track_type, road_access, road_class, curvature, car_average_speed, surface // profiles: // - name: motorcycle // custom_model_files: [motorcycle.json,curvature.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/mtb.json b/core/src/main/resources/com/graphhopper/custom_models/mtb.json index 6745f55d91f..d3b9088d28d 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/mtb.json +++ b/core/src/main/resources/com/graphhopper/custom_models/mtb.json @@ -1,5 +1,6 @@ // to use this custom model you need to set the following option in the config.yml // graph.elevation.provider: srtm # enables elevation +// graph.encoded_values: mtb_priority, mtb_access, roundabout, mtb_average_speed, average_slope // profiles: // - name: mtb // custom_model_files: [mtb.json, bike_elevation.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/racingbike.json b/core/src/main/resources/com/graphhopper/custom_models/racingbike.json index a0e56544cdc..6b32e079d96 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/racingbike.json +++ b/core/src/main/resources/com/graphhopper/custom_models/racingbike.json @@ -1,5 +1,6 @@ // to use this custom model you need to set the following option in the config.yml // graph.elevation.provider: srtm # enables elevation +// graph.encoded_values: racingbike_priority, racingbike_access, roundabout, racingbike_average_speed, average_slope // profiles: // - name: racingbike // custom_model_files: [racingbike.json, bike_elevation.json] diff --git a/core/src/main/resources/com/graphhopper/custom_models/truck.json b/core/src/main/resources/com/graphhopper/custom_models/truck.json index 6bc505b6204..47432d29849 100644 --- a/core/src/main/resources/com/graphhopper/custom_models/truck.json +++ b/core/src/main/resources/com/graphhopper/custom_models/truck.json @@ -1,4 +1,5 @@ // to use this custom model you need to set the following option in the config.yml +// graph.encoded_values: road_access, car_access, hgv, max_width, max_height, car_average_speed // profiles: // - name: truck // turn_costs: