forked from Transport-for-the-North/otp4gb-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-config.yml
94 lines (81 loc) · 2.85 KB
/
example-config.yml
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
# Date for filtered GTFS files
date: 2019-09-10
# Specify the extents to clip the graph to. These are for Sheffield
# Alternatively, you can provide a named extent (as defined in otp4gb/extents.yml) as a command line -b/--bounds option
extents:
min_lon: -1.5279
max_lon: -1.4119
max_lat: 53.4416
min_lat: 53.3347
# Specify the osm file to use
osm_file: great-britain-latest.osm.pbf
# Specify the list of GTFS files to process
gtfs_files:
- GBRail_GTFS.zip
- EM_GTFS.zip
- Y_GTFS.zip
# Length of time to search before the travel time,
# if not given then it is calculated based on route availability
# if generating isochrones, this is the maximum travel time
time_periods:
- name: AM
travel_time: 09:00
search_window_minutes: 60
- name: IP
travel_time: 14:00
search_window_minutes: 60
- name: PM
travel_time: 19:00
search_window_minutes: 60
# List of lists of modes to include in route calculations
modes:
# List 1
- - BUS
- WALK
# List 2
- - TRANSIT
- WALK
# Factors applied to the respective time / distance when calculation the generalised cost
# times in the generalised cost calculation are in minutes and distances are km
generalised_cost_factors:
wait_time: 1
transfer_number: 1
walk_time: 1
transit_time: 1
walk_distance: 1
transit_distance: 1
# Name of zone centroids file and optional name
# of destination centroids (if different positions)
centroids: centroids.csv
destination_centroids: optional_destination_centroids.csv
# Method used for getting the average generalised cost from all itineraries produced by OTP
iterinary_aggregation_method: mean
max_walk_distance: 10_000
number_of_threads: 10
no_server: no
hostname: localhost
port: 8080
crowfly_max_distance: 1_000_000
# Optional zone rural urban classification lookup,
# used for adjusting crowfly max distance
ruc_lookup:
path: ruc_lookup.csv
id_column: zone_id
ruc_column: ruc
# Optional lookup of destinations to exclude when calculating routing
irrelevant_destinations:
path: irrelevant_destinations.csv
zone_column: zone_id
# Optional lookup of OD pair trips requested in a previous run
previous_trips:
path: previously_requested_trips.csv
od_column: od_code
# Optional settings when running in isochrone generation mode
isochrone_configuration:
step_minutes: 15
buffer_metres: 100
zone_column: zone_name #field name from centroids.csv that is used to build the output isochrone field names - if not unique then areas will over-write each other
union_all_times: true #runs all arrival times together and unions all ischrones together
arrive_by: true #time specified is arrival time at destination
compress_output_files: true #controls if output files are zipped up (in batches)
fanout_directory: false #fans out isochrone files into multiple directories fanout_directory=true is not compatible with compress_output_files=true