Skip to content

Commit

Permalink
chore(config): automatic conversion of application.yml to ors-config.…
Browse files Browse the repository at this point in the history
…yml and ors-config.env
  • Loading branch information
takb authored and github-actions[bot] committed Apr 19, 2024
1 parent 13962c8 commit 700cae5
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 122 deletions.
24 changes: 2 additions & 22 deletions ors-config.env
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ors.engine.source_file=ors-api/src/test/files/heidelberg.osm.gz
#ors.engine.elevation.provider=multi
#ors.engine.elevation.cache_path=./elevation_cache
#ors.engine.profile_default.enabled=false
#ors.engine.profile_default.elevation=false
#ors.engine.profile_default.elevation=true
#ors.engine.profile_default.elevation_smoothing=false
#ors.engine.profile_default.encoder_flags_size=8
#ors.engine.profile_default.instructions=true
Expand All @@ -96,9 +96,7 @@ ors.engine.source_file=ors-api/src/test/files/heidelberg.osm.gz
#ors.engine.profile_default.preparation.methods.lm.weightings=recommended,shortest
#ors.engine.profile_default.preparation.methods.lm.landmarks=16
#ors.engine.profile_default.execution.methods.lm.active_landmarks=8
ors.engine.profiles.car.enabled=true
#ors.engine.profiles.car.profile=driving-car
#ors.engine.profiles.car.elevation=true
#ors.engine.profiles.car.encoder_options.turn_costs=true
#ors.engine.profiles.car.encoder_options.block_fords=false
#ors.engine.profiles.car.encoder_options.use_acceleration=true
Expand All @@ -121,14 +119,11 @@ ors.engine.profiles.car.enabled=true
#ors.engine.profiles.car.ext_storages.HeavyVehicle=
#ors.engine.profiles.car.ext_storages.WaySurfaceType=
#ors.engine.profiles.car.ext_storages.RoadAccessRestrictions.use_for_warnings=true
#ors.engine.profiles.hgv.enabled=false
ors.engine.profiles.car.enabled=true
#ors.engine.profiles.hgv.profile=driving-hgv
#ors.engine.profiles.hgv.encoder_flags_size=8
#ors.engine.profiles.hgv.encoder_options.turn_costs=true
#ors.engine.profiles.hgv.encoder_options.block_fords=false
#ors.engine.profiles.hgv.encoder_options.use_acceleration=true
#ors.engine.profiles.hgv.maximum_distance=100000
#ors.engine.profiles.hgv.elevation=true
#ors.engine.profiles.hgv.preparation.min_network_size=200
#ors.engine.profiles.hgv.preparation.methods.ch.enabled=true
#ors.engine.profiles.hgv.preparation.methods.ch.threads=1
Expand All @@ -142,72 +137,57 @@ ors.engine.profiles.car.enabled=true
#ors.engine.profiles.hgv.ext_storages.WayCategory=
#ors.engine.profiles.hgv.ext_storages.HeavyVehicle.restrictions=true
#ors.engine.profiles.hgv.ext_storages.WaySurfaceType=
#ors.engine.profiles.bike-regular.enabled=false
#ors.engine.profiles.bike-regular.profile=cycling-regular
#ors.engine.profiles.bike-regular.encoder_options.consider_elevation=true
#ors.engine.profiles.bike-regular.encoder_options.turn_costs=true
#ors.engine.profiles.bike-regular.encoder_options.block_fords=false
#ors.engine.profiles.bike-regular.elevation=true
#ors.engine.profiles.bike-regular.ext_storages.WayCategory=
#ors.engine.profiles.bike-regular.ext_storages.WaySurfaceType=
#ors.engine.profiles.bike-regular.ext_storages.HillIndex=
#ors.engine.profiles.bike-regular.ext_storages.TrailDifficulty=
#ors.engine.profiles.bike-mountain.enabled=false
#ors.engine.profiles.bike-mountain.profile=cycling-mountain
#ors.engine.profiles.bike-mountain.encoder_options.consider_elevation=true
#ors.engine.profiles.bike-mountain.encoder_options.turn_costs=true
#ors.engine.profiles.bike-mountain.encoder_options.block_fords=false
#ors.engine.profiles.bike-mountain.elevation=true
#ors.engine.profiles.bike-mountain.ext_storages.WayCategory=
#ors.engine.profiles.bike-mountain.ext_storages.WaySurfaceType=
#ors.engine.profiles.bike-mountain.ext_storages.HillIndex=
#ors.engine.profiles.bike-mountain.ext_storages.TrailDifficulty=
#ors.engine.profiles.bike-road.enabled=false
#ors.engine.profiles.bike-road.profile=cycling-road
#ors.engine.profiles.bike-road.encoder_options.consider_elevation=true
#ors.engine.profiles.bike-road.encoder_options.turn_costs=true
#ors.engine.profiles.bike-road.encoder_options.block_fords=false
#ors.engine.profiles.bike-road.elevation=true
#ors.engine.profiles.bike-road.ext_storages.WayCategory=
#ors.engine.profiles.bike-road.ext_storages.WaySurfaceType=
#ors.engine.profiles.bike-road.ext_storages.HillIndex=
#ors.engine.profiles.bike-road.ext_storages.TrailDifficulty=
#ors.engine.profiles.bike-electric.enabled=false
#ors.engine.profiles.bike-electric.profile=cycling-electric
#ors.engine.profiles.bike-electric.encoder_options.consider_elevation=true
#ors.engine.profiles.bike-electric.encoder_options.turn_costs=true
#ors.engine.profiles.bike-electric.encoder_options.block_fords=false
#ors.engine.profiles.bike-electric.elevation=true
#ors.engine.profiles.bike-electric.ext_storages.WayCategory=
#ors.engine.profiles.bike-electric.ext_storages.WaySurfaceType=
#ors.engine.profiles.bike-electric.ext_storages.HillIndex=
#ors.engine.profiles.bike-electric.ext_storages.TrailDifficulty=
#ors.engine.profiles.walking.enabled=false
#ors.engine.profiles.walking.profile=foot-walking
#ors.engine.profiles.walking.encoder_options.block_fords=false
#ors.engine.profiles.walking.elevation=true
#ors.engine.profiles.walking.ext_storages.WayCategory=
#ors.engine.profiles.walking.ext_storages.WaySurfaceType=
#ors.engine.profiles.walking.ext_storages.HillIndex=
#ors.engine.profiles.walking.ext_storages.TrailDifficulty=
#ors.engine.profiles.hiking.enabled=false
#ors.engine.profiles.hiking.profile=foot-hiking
#ors.engine.profiles.hiking.encoder_options.block_fords=false
#ors.engine.profiles.hiking.elevation=true
#ors.engine.profiles.hiking.ext_storages.WayCategory=
#ors.engine.profiles.hiking.ext_storages.WaySurfaceType=
#ors.engine.profiles.hiking.ext_storages.HillIndex=
#ors.engine.profiles.hiking.ext_storages.TrailDifficulty=
#ors.engine.profiles.wheelchair.enabled=false
#ors.engine.profiles.wheelchair.profile=wheelchair
#ors.engine.profiles.wheelchair.encoder_options.block_fords=true
#ors.engine.profiles.wheelchair.elevation=true
#ors.engine.profiles.wheelchair.maximum_snapping_radius=50
#ors.engine.profiles.wheelchair.ext_storages.WayCategory=
#ors.engine.profiles.wheelchair.ext_storages.WaySurfaceType=
#ors.engine.profiles.wheelchair.ext_storages.Wheelchair.KerbsOnCrossings=true
#ors.engine.profiles.wheelchair.ext_storages.OsmId=
#ors.engine.profiles.public-transport.enabled=false
#ors.engine.profiles.public-transport.profile=public-transport
#ors.engine.profiles.public-transport.encoder_options.block_fords=false
#ors.engine.profiles.public-transport.elevation=true
Expand Down
200 changes: 100 additions & 100 deletions ors-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# tomcat:
# keep-alive-timeout: 30000
#spring:
# profiles:
profiles:
# active: default
# mvc:
# servlet:
Expand Down Expand Up @@ -46,109 +46,108 @@
# org.heigit: INFO
##### openrouteservice specific settings #####
ors:
# cors:
# allowed_origins: "*"
# allowed_headers: Content-Type, X-Requested-With, accept, Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Authorization
# preflight_max_age: 600
# messages:
# ##### ORS endpoints settings #####
# endpoints:
# routing:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors, tmc - BASt
# gpx_name: ORSRouting
# gpx_description: This is a directions instructions file as GPX, generated from openrouteservice
# gpx_base_url: https://openrouteservice.org/
# gpx_support_mail: [email protected]
# gpx_author: openrouteservice
# gpx_content_licence: LGPL 3.0
# maximum_avoid_polygon_area: 200000000
# maximum_avoid_polygon_extent: 20000
# maximum_alternative_routes: 3
# matrix:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors
# maximum_routes: 2500
# maximum_routes_flexible: 25
# maximum_visited_nodes: 100000
# maximum_search_radius: 2000
# u_turn_costs: -1
# isochrones:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors
# maximum_locations: 2
# maximum_intervals: 1
# allow_compute_area: true
# maximum_range_distance_default: 50000
# maximum_range_distance:
# - profiles: driving-car, driving-hgv
# value: 100000
# maximum_range_time_default: 18000
# maximum_range_time:
# - profiles: driving-car, driving-hgv
# value: 3600
# fastisochrones:
# maximum_range_distance_default: 50000
# maximum_range_distance:
# - profiles: driving-car, driving-hgv
# value: 500000
# maximum_range_time_default: 18000
# maximum_range_time:
# - profiles: driving-car, driving-hgv
# value: 10800
# Snap:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors
# ##### ORS engine settings #####
# cors:
# allowed_origins: "*"
# allowed_headers: Content-Type, X-Requested-With, accept, Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Authorization
# preflight_max_age: 600
# messages:
# ##### ORS endpoints settings #####
# endpoints:
# routing:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors, tmc - BASt
# gpx_name: ORSRouting
# gpx_description: This is a directions instructions file as GPX, generated from openrouteservice
# gpx_base_url: https://openrouteservice.org/
# gpx_support_mail: [email protected]
# gpx_author: openrouteservice
# gpx_content_licence: LGPL 3.0
# maximum_avoid_polygon_area: 200000000
# maximum_avoid_polygon_extent: 20000
# maximum_alternative_routes: 3
# matrix:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors
# maximum_routes: 2500
# maximum_routes_flexible: 25
# maximum_visited_nodes: 100000
# maximum_search_radius: 2000
# u_turn_costs: -1
# isochrones:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors
# maximum_locations: 2
# maximum_intervals: 1
# allow_compute_area: true
# maximum_range_distance_default: 50000
# maximum_range_distance:
- profiles: driving-car, driving-hgv
# value: 100000
# maximum_range_time_default: 18000
# maximum_range_time:
- profiles: driving-car, driving-hgv
# value: 3600
# fastisochrones:
# maximum_range_distance_default: 50000
# maximum_range_distance:
- profiles: driving-car, driving-hgv
# value: 500000
# maximum_range_time_default: 18000
# maximum_range_time:
- profiles: driving-car, driving-hgv
# value: 10800
# Snap:
# enabled: true
# attribution: openrouteservice.org, OpenStreetMap contributors
# ##### ORS engine settings #####
engine:
source_file: ors-api/src/test/files/heidelberg.osm.gz
# init_threads: 1
# preparation_mode: false
# graphs_root_path: ./graphs
# graphs_data_access: RAM_STORE
# elevation:
# preprocessed: false
# data_access: MMAP
# cache_clear: false
# provider: multi
# cache_path: ./elevation_cache
# profile_default:
# enabled: false
# elevation: true
# elevation_smoothing: false
# encoder_flags_size: 8
# instructions: true
# optimize: false
# traffic: false
# maximum_distance: 100000
# maximum_distance_dynamic_weights: 100000
# maximum_distance_avoid_areas: 100000
# maximum_waypoints: 50
# maximum_snapping_radius: 400
# maximum_distance_alternative_routes: 100000
# maximum_distance_round_trip_routes: 100000
# maximum_speed_lower_bound: 80
# maximum_visited_nodes: 1000000
# location_index_resolution: 500
# location_index_search_iterations: 4
# force_turn_costs: false
# interpolate_bridges_and_tunnels: true
# preparation:
# min_network_size: 200
# methods:
# lm:
# enabled: true
# threads: 1
# weightings: recommended,shortest
# landmarks: 16
# execution:
# methods:
# lm:
# active_landmarks: 8
# init_threads: 1
# preparation_mode: false
# graphs_root_path: ./graphs
# graphs_data_access: RAM_STORE
# elevation:
# preprocessed: false
# data_access: MMAP
# cache_clear: false
# provider: multi
# cache_path: ./elevation_cache
# profile_default:
# enabled: false
# elevation: true
# elevation_smoothing: false
# encoder_flags_size: 8
# instructions: true
# optimize: false
# traffic: false
# maximum_distance: 100000
# maximum_distance_dynamic_weights: 100000
# maximum_distance_avoid_areas: 100000
# maximum_waypoints: 50
# maximum_snapping_radius: 400
# maximum_distance_alternative_routes: 100000
# maximum_distance_round_trip_routes: 100000
# maximum_speed_lower_bound: 80
# maximum_visited_nodes: 1000000
# location_index_resolution: 500
# location_index_search_iterations: 4
# force_turn_costs: false
# interpolate_bridges_and_tunnels: true
# preparation:
# min_network_size: 200
# methods:
# lm:
# enabled: true
# threads: 1
# weightings: recommended,shortest
# landmarks: 16
# execution:
# methods:
# lm:
# active_landmarks: 8
profiles:
# # All properties defined in ors.engine.profile_default can also be set in each profile to overwrite the defaults profile-specific.
# # All properties defined in ors.engine.profile_default can also be set in each profile to overwrite the defaults profile-specific.
car:
enabled: true
# profile: driving-car
# encoder_options:
# turn_costs: true
Expand Down Expand Up @@ -184,6 +183,7 @@ ors:
# WaySurfaceType:
# RoadAccessRestrictions:
# use_for_warnings: true
# enabled: true
# hgv:
# profile: driving-hgv
# encoder_options:
Expand Down

0 comments on commit 700cae5

Please sign in to comment.