Skip to content

Commit 49c456d

Browse files
authored
Fix indentation (graphhopper#2896)
* Fix indentation * Fix * Fix yml indent_size * Fix json ident_size * Revert profile indentation
1 parent a5ac0e4 commit 49c456d

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ ij_formatter_tags_enabled = true
1919
ij_smart_tabs = false
2020
ij_visual_guides = none
2121
ij_wrap_on_typing = false
22+
23+
[*.json]
24+
indent_size = 2
25+
indent_style = space
26+
27+
[*.{yml,yaml}]
28+
indent_size = 2
29+
indent_style = space

config-example.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -132,45 +132,45 @@ graphhopper:
132132
# graph.elevation.way_point_max_distance: 10
133133

134134

135-
#### Country-dependent defaults for max speeds ####
135+
#### Country-dependent defaults for max speeds ####
136136

137-
# This features sets a maximum speed in 'max_speed' encoded value if no maxspeed tag was found. It is country-dependent
138-
# and based on several rules. See https://github.com/westnordost/osm-legal-default-speeds
139-
# To use it uncomment the following, then enable urban density below and add 'country' to graph.encoded_values
140-
# max_speed_calculator.enabled: true
137+
# This features sets a maximum speed in 'max_speed' encoded value if no maxspeed tag was found. It is country-dependent
138+
# and based on several rules. See https://github.com/westnordost/osm-legal-default-speeds
139+
# To use it uncomment the following, then enable urban density below and add 'country' to graph.encoded_values
140+
# max_speed_calculator.enabled: true
141141

142142

143-
#### Urban density (built-up areas) ####
143+
#### Urban density (built-up areas) ####
144144

145-
# This feature allows classifying roads into 'rural', 'residential' and 'city' areas (encoded value 'urban_density')
146-
# Use 1 or more threads to enable the feature
147-
# graph.urban_density.threads: 8
148-
# Use higher/lower sensitivities if too little/many roads fall into the according categories.
149-
# Using smaller radii will speed up the classification, but only change these values if you know what you are doing.
150-
# If you do not need the (rather slow) city classification set city_radius to zero.
151-
# graph.urban_density.residential_radius: 400
152-
# graph.urban_density.residential_sensitivity: 6000
153-
# graph.urban_density.city_radius: 1500
154-
# graph.urban_density.city_sensitivity: 1000
145+
# This feature allows classifying roads into 'rural', 'residential' and 'city' areas (encoded value 'urban_density')
146+
# Use 1 or more threads to enable the feature
147+
# graph.urban_density.threads: 8
148+
# Use higher/lower sensitivities if too little/many roads fall into the according categories.
149+
# Using smaller radii will speed up the classification, but only change these values if you know what you are doing.
150+
# If you do not need the (rather slow) city classification set city_radius to zero.
151+
# graph.urban_density.residential_radius: 400
152+
# graph.urban_density.residential_sensitivity: 6000
153+
# graph.urban_density.city_radius: 1500
154+
# graph.urban_density.city_sensitivity: 1000
155155

156156

157-
#### Subnetworks ####
157+
#### Subnetworks ####
158158

159-
# In many cases the road network consists of independent components without any routes going in between. In
160-
# the most simple case you can imagine an island without a bridge or ferry connection. The following parameter
161-
# allows setting a minimum size (number of edges) for such detached components. This can be used to reduce the number
162-
# of cases where a connection between locations might not be found.
159+
# In many cases the road network consists of independent components without any routes going in between. In
160+
# the most simple case you can imagine an island without a bridge or ferry connection. The following parameter
161+
# allows setting a minimum size (number of edges) for such detached components. This can be used to reduce the number
162+
# of cases where a connection between locations might not be found.
163163
prepare.min_network_size: 200
164164
prepare.subnetworks.threads: 1
165165

166166

167-
#### Routing ####
167+
#### Routing ####
168168

169-
# You can define the maximum visited nodes when routing. This may result in not found connections if there is no
170-
# connection between two points within the given visited nodes. The default is Integer.MAX_VALUE. Useful for flexibility mode
171-
# routing.max_visited_nodes: 1000000
169+
# You can define the maximum visited nodes when routing. This may result in not found connections if there is no
170+
# connection between two points within the given visited nodes. The default is Integer.MAX_VALUE. Useful for flexibility mode
171+
# routing.max_visited_nodes: 1000000
172172

173-
# The maximum time in milliseconds after which a routing request will be aborted. This has some routing algorithm
173+
# The maximum time in milliseconds after which a routing request will be aborted. This has some routing algorithm
174174
# specific caveats, but generally it should allow the prevention of long-running requests. The default is Long.MAX_VALUE
175175
# routing.timeout_ms: 300000
176176

0 commit comments

Comments
 (0)