Repository navigation
Expand file tree
/
Copy pathconfig_example.yaml
More file actions
94 lines (79 loc) · 2.32 KB
/
Copy pathconfig_example.yaml
File metadata and controls
94 lines (79 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
password_config_file: ./secrets.yaml
schema: public
srid: 32631
area_id: 2
log_level: DEBUG
area: {
name: Andorra,
}
db: {
username: postgres,
db_host: localhost,
db_name: rgt,
db_server_port: 5432,
# Optional SSH tunnel to the database server; db_host/db_server_port are then relative to the SSH server.
# ssh: {
# server: ssh.example.com,
# server_username: user,
# private_key_path: ~/.ssh/id_ed25519,
# tunnel_port: 1113,
# }
}
area_insert: {
activated: false,
# If false (default), inserting an Overpass boundary that resolves to multiple polygons
# (e.g. exclaves / disjoint geometries) will raise.
allow_multipolygon: false,
# Optional boundary source example. If you use "overpass", you can additionally restrict
# the search to an enclosing administrative area chain (outer -> inner).
# boundary_source: {
# type: overpass,
# admin_boundary_name: Andorra,
# enclosing_areas: ["Spain", "Catalunya"]
# }
}
overpass: {
# Public instance default; point this to your own instance if you run one.
endpoint: "https://overpass-api.de/api/interpreter",
timeout_s: 25,
# REQUIRED for scripts using overpass-api.de: identify your application well.
user_agent: "roadgraphtool/0.0.0 (contact: you@example.com)",
# Optional but recommended contact metadata.
from_email: "you@example.com",
# Only required for browser calls; leave empty for scripts.
referer: "",
# Retry behavior for 429/504 (fair-use compliant; respects /api/status countdown when available).
max_retries: 6,
retry_backoff_s: 1.0,
retry_max_sleep_s: 120.0
}
# Single road import step: choose exactly one backend via road_import.source.type
road_import: {
activated: false,
schema: importer,
tags: [],
source: {
# "osm_file" | "overpass"
type: osm_file,
input_file: ./andorra-latest-filtered.osm,
force: true,
style_file: pipeline,
pgpass: true,
pgpass_file: "~/pgpass.conf",
}
}
contraction: {
activated: false
}
strong_components: {
activated: false
}
export: {
activated: true,
dir: ./
}
dm_generator: {
activated: false,
# Distance matrix file format for shortestPathsPreprocessor: csv or hdf
output_format: csv,
}