Bala Ganapathy Parthiban
commited on
Commit
·
4fca71f
0
Parent(s):
First Commit
Browse files- .gitattributes +1 -0
- custom_files/duplicateways.txt +8 -0
- custom_files/file_hashes.txt +0 -0
- custom_files/valhalla.json +294 -0
- custom_files/valhalla_tiles.tar +3 -0
- docker-compose.yml +37 -0
.gitattributes
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
custom_files/duplicateways.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
WayID1 WayID2 DuplicateEdges
|
| 2 |
+
WayID1 WayID2 DuplicateEdges
|
| 3 |
+
WayID1 WayID2 DuplicateEdges
|
| 4 |
+
WayID1 WayID2 DuplicateEdges
|
| 5 |
+
WayID1 WayID2 DuplicateEdges
|
| 6 |
+
WayID1 WayID2 DuplicateEdges
|
| 7 |
+
WayID1 WayID2 DuplicateEdges
|
| 8 |
+
WayID1 WayID2 DuplicateEdges
|
custom_files/file_hashes.txt
ADDED
|
File without changes
|
custom_files/valhalla.json
ADDED
|
@@ -0,0 +1,294 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_data": {
|
| 3 |
+
"elevation": "/custom_files/elevation_data"
|
| 4 |
+
},
|
| 5 |
+
"httpd": {
|
| 6 |
+
"service": {
|
| 7 |
+
"drain_seconds": 28,
|
| 8 |
+
"interrupt": "ipc:///tmp/interrupt",
|
| 9 |
+
"listen": "tcp://*:8002",
|
| 10 |
+
"loopback": "ipc:///tmp/loopback",
|
| 11 |
+
"shutdown_seconds": 1,
|
| 12 |
+
"timeout_seconds": -1
|
| 13 |
+
}
|
| 14 |
+
},
|
| 15 |
+
"loki": {
|
| 16 |
+
"actions": [
|
| 17 |
+
"locate",
|
| 18 |
+
"route",
|
| 19 |
+
"height",
|
| 20 |
+
"sources_to_targets",
|
| 21 |
+
"optimized_route",
|
| 22 |
+
"isochrone",
|
| 23 |
+
"trace_route",
|
| 24 |
+
"trace_attributes",
|
| 25 |
+
"transit_available",
|
| 26 |
+
"expansion",
|
| 27 |
+
"centroid",
|
| 28 |
+
"status"
|
| 29 |
+
],
|
| 30 |
+
"logging": {
|
| 31 |
+
"color": true,
|
| 32 |
+
"file_name": "path_to_some_file.log",
|
| 33 |
+
"long_request": 100,
|
| 34 |
+
"type": "std_out"
|
| 35 |
+
},
|
| 36 |
+
"service": {
|
| 37 |
+
"proxy": "ipc:///tmp/loki"
|
| 38 |
+
},
|
| 39 |
+
"service_defaults": {
|
| 40 |
+
"heading_tolerance": 60,
|
| 41 |
+
"minimum_reachability": 50,
|
| 42 |
+
"node_snap_tolerance": 5,
|
| 43 |
+
"radius": 0,
|
| 44 |
+
"search_cutoff": 35000,
|
| 45 |
+
"street_side_max_distance": 1000,
|
| 46 |
+
"street_side_tolerance": 5
|
| 47 |
+
},
|
| 48 |
+
"use_connectivity": true
|
| 49 |
+
},
|
| 50 |
+
"meili": {
|
| 51 |
+
"auto": {
|
| 52 |
+
"search_radius": 50,
|
| 53 |
+
"turn_penalty_factor": 200
|
| 54 |
+
},
|
| 55 |
+
"bicycle": {
|
| 56 |
+
"turn_penalty_factor": 140
|
| 57 |
+
},
|
| 58 |
+
"customizable": [
|
| 59 |
+
"mode",
|
| 60 |
+
"search_radius",
|
| 61 |
+
"turn_penalty_factor",
|
| 62 |
+
"gps_accuracy",
|
| 63 |
+
"interpolation_distance",
|
| 64 |
+
"sigma_z",
|
| 65 |
+
"beta",
|
| 66 |
+
"max_route_distance_factor",
|
| 67 |
+
"max_route_time_factor"
|
| 68 |
+
],
|
| 69 |
+
"default": {
|
| 70 |
+
"beta": 3,
|
| 71 |
+
"breakage_distance": 2000,
|
| 72 |
+
"geometry": false,
|
| 73 |
+
"gps_accuracy": 5,
|
| 74 |
+
"interpolation_distance": 10,
|
| 75 |
+
"max_route_distance_factor": 5,
|
| 76 |
+
"max_route_time_factor": 5,
|
| 77 |
+
"max_search_radius": 100,
|
| 78 |
+
"route": true,
|
| 79 |
+
"search_radius": 50,
|
| 80 |
+
"sigma_z": 4.07,
|
| 81 |
+
"turn_penalty_factor": 0
|
| 82 |
+
},
|
| 83 |
+
"grid": {
|
| 84 |
+
"cache_size": 100240,
|
| 85 |
+
"size": 500
|
| 86 |
+
},
|
| 87 |
+
"logging": {
|
| 88 |
+
"color": true,
|
| 89 |
+
"file_name": "path_to_some_file.log",
|
| 90 |
+
"type": "std_out"
|
| 91 |
+
},
|
| 92 |
+
"mode": "auto",
|
| 93 |
+
"multimodal": {
|
| 94 |
+
"turn_penalty_factor": 70
|
| 95 |
+
},
|
| 96 |
+
"pedestrian": {
|
| 97 |
+
"search_radius": 50,
|
| 98 |
+
"turn_penalty_factor": 100
|
| 99 |
+
},
|
| 100 |
+
"service": {
|
| 101 |
+
"proxy": "ipc:///tmp/meili"
|
| 102 |
+
},
|
| 103 |
+
"verbose": false
|
| 104 |
+
},
|
| 105 |
+
"mjolnir": {
|
| 106 |
+
"admin": "/custom_files/admin_data/admins.sqlite",
|
| 107 |
+
"data_processing": {
|
| 108 |
+
"allow_alt_name": false,
|
| 109 |
+
"apply_country_overrides": true,
|
| 110 |
+
"grid_divisions_within_tile": 32,
|
| 111 |
+
"infer_internal_intersections": true,
|
| 112 |
+
"infer_turn_channels": true,
|
| 113 |
+
"scan_tar": false,
|
| 114 |
+
"use_admin_db": true,
|
| 115 |
+
"use_direction_on_ways": false,
|
| 116 |
+
"use_rest_area": false,
|
| 117 |
+
"use_urban_tag": false
|
| 118 |
+
},
|
| 119 |
+
"global_synchronized_cache": false,
|
| 120 |
+
"hierarchy": true,
|
| 121 |
+
"id_table_size": 1300000000,
|
| 122 |
+
"import_bike_share_stations": false,
|
| 123 |
+
"include_bicycle": true,
|
| 124 |
+
"include_construction": false,
|
| 125 |
+
"include_driveways": true,
|
| 126 |
+
"include_driving": true,
|
| 127 |
+
"include_pedestrian": true,
|
| 128 |
+
"include_platforms": false,
|
| 129 |
+
"landmarks": "/data/valhalla/landmarks.sqlite",
|
| 130 |
+
"logging": {
|
| 131 |
+
"color": true,
|
| 132 |
+
"file_name": "path_to_some_file.log",
|
| 133 |
+
"type": "std_out"
|
| 134 |
+
},
|
| 135 |
+
"lru_mem_cache_hard_control": false,
|
| 136 |
+
"max_cache_size": 1000000000,
|
| 137 |
+
"max_concurrent_reader_users": 1,
|
| 138 |
+
"reclassify_links": true,
|
| 139 |
+
"shortcuts": true,
|
| 140 |
+
"tile_dir": "/custom_files/valhalla_tiles",
|
| 141 |
+
"tile_extract": "/custom_files/valhalla_tiles.tar",
|
| 142 |
+
"timezone": "/custom_files/timezone_data/timezones.sqlite",
|
| 143 |
+
"traffic_extract": "/custom_files/traffic.tar",
|
| 144 |
+
"transit_dir": "/custom_files/transit_tiles",
|
| 145 |
+
"transit_feeds_dir": "/gtfs_feeds",
|
| 146 |
+
"transit_pbf_limit": 20000,
|
| 147 |
+
"use_lru_mem_cache": false,
|
| 148 |
+
"use_simple_mem_cache": false,
|
| 149 |
+
"concurrency": "4"
|
| 150 |
+
},
|
| 151 |
+
"odin": {
|
| 152 |
+
"logging": {
|
| 153 |
+
"color": true,
|
| 154 |
+
"file_name": "path_to_some_file.log",
|
| 155 |
+
"type": "std_out"
|
| 156 |
+
},
|
| 157 |
+
"markup_formatter": {
|
| 158 |
+
"markup_enabled": false,
|
| 159 |
+
"phoneme_format": "<TEXTUAL_STRING> (<span class=<QUOTES>phoneme<QUOTES>>/<VERBAL_STRING>/</span>)"
|
| 160 |
+
},
|
| 161 |
+
"service": {
|
| 162 |
+
"proxy": "ipc:///tmp/odin"
|
| 163 |
+
}
|
| 164 |
+
},
|
| 165 |
+
"service_limits": {
|
| 166 |
+
"auto": {
|
| 167 |
+
"max_distance": 5000000,
|
| 168 |
+
"max_locations": 20,
|
| 169 |
+
"max_matrix_distance": 400000,
|
| 170 |
+
"max_matrix_location_pairs": 2500
|
| 171 |
+
},
|
| 172 |
+
"bicycle": {
|
| 173 |
+
"max_distance": 500000,
|
| 174 |
+
"max_locations": 50,
|
| 175 |
+
"max_matrix_distance": 200000,
|
| 176 |
+
"max_matrix_location_pairs": 2500
|
| 177 |
+
},
|
| 178 |
+
"bikeshare": {
|
| 179 |
+
"max_distance": 500000,
|
| 180 |
+
"max_locations": 50,
|
| 181 |
+
"max_matrix_distance": 200000,
|
| 182 |
+
"max_matrix_location_pairs": 2500
|
| 183 |
+
},
|
| 184 |
+
"bus": {
|
| 185 |
+
"max_distance": 5000000,
|
| 186 |
+
"max_locations": 50,
|
| 187 |
+
"max_matrix_distance": 400000,
|
| 188 |
+
"max_matrix_location_pairs": 2500
|
| 189 |
+
},
|
| 190 |
+
"centroid": {
|
| 191 |
+
"max_distance": 200000,
|
| 192 |
+
"max_locations": 5
|
| 193 |
+
},
|
| 194 |
+
"isochrone": {
|
| 195 |
+
"max_contours": 4,
|
| 196 |
+
"max_distance": 25000,
|
| 197 |
+
"max_distance_contour": 200,
|
| 198 |
+
"max_locations": 1,
|
| 199 |
+
"max_time_contour": 120
|
| 200 |
+
},
|
| 201 |
+
"max_alternates": 2,
|
| 202 |
+
"max_distance_disable_hierarchy_culling": 0,
|
| 203 |
+
"max_exclude_locations": 50,
|
| 204 |
+
"max_exclude_polygons_length": 10000,
|
| 205 |
+
"max_radius": 200,
|
| 206 |
+
"max_reachability": 100,
|
| 207 |
+
"max_timedep_distance": 500000,
|
| 208 |
+
"max_timedep_distance_matrix": 0,
|
| 209 |
+
"motor_scooter": {
|
| 210 |
+
"max_distance": 500000,
|
| 211 |
+
"max_locations": 50,
|
| 212 |
+
"max_matrix_distance": 200000,
|
| 213 |
+
"max_matrix_location_pairs": 2500
|
| 214 |
+
},
|
| 215 |
+
"motorcycle": {
|
| 216 |
+
"max_distance": 500000,
|
| 217 |
+
"max_locations": 50,
|
| 218 |
+
"max_matrix_distance": 200000,
|
| 219 |
+
"max_matrix_location_pairs": 2500
|
| 220 |
+
},
|
| 221 |
+
"multimodal": {
|
| 222 |
+
"max_distance": 500000,
|
| 223 |
+
"max_locations": 50,
|
| 224 |
+
"max_matrix_distance": 0,
|
| 225 |
+
"max_matrix_location_pairs": 0
|
| 226 |
+
},
|
| 227 |
+
"pedestrian": {
|
| 228 |
+
"max_distance": 250000,
|
| 229 |
+
"max_locations": 50,
|
| 230 |
+
"max_matrix_distance": 200000,
|
| 231 |
+
"max_matrix_location_pairs": 2500,
|
| 232 |
+
"max_transit_walking_distance": 10000,
|
| 233 |
+
"min_transit_walking_distance": 1
|
| 234 |
+
},
|
| 235 |
+
"skadi": {
|
| 236 |
+
"max_shape": 750000,
|
| 237 |
+
"min_resample": 10
|
| 238 |
+
},
|
| 239 |
+
"status": {
|
| 240 |
+
"allow_verbose": false
|
| 241 |
+
},
|
| 242 |
+
"taxi": {
|
| 243 |
+
"max_distance": 5000000,
|
| 244 |
+
"max_locations": 20,
|
| 245 |
+
"max_matrix_distance": 400000,
|
| 246 |
+
"max_matrix_location_pairs": 2500
|
| 247 |
+
},
|
| 248 |
+
"trace": {
|
| 249 |
+
"max_alternates": 3,
|
| 250 |
+
"max_alternates_shape": 100,
|
| 251 |
+
"max_distance": 200000,
|
| 252 |
+
"max_gps_accuracy": 100,
|
| 253 |
+
"max_search_radius": 100,
|
| 254 |
+
"max_shape": 16000
|
| 255 |
+
},
|
| 256 |
+
"transit": {
|
| 257 |
+
"max_distance": 500000,
|
| 258 |
+
"max_locations": 50,
|
| 259 |
+
"max_matrix_distance": 200000,
|
| 260 |
+
"max_matrix_location_pairs": 2500
|
| 261 |
+
},
|
| 262 |
+
"truck": {
|
| 263 |
+
"max_distance": 5000000,
|
| 264 |
+
"max_locations": 20,
|
| 265 |
+
"max_matrix_distance": 400000,
|
| 266 |
+
"max_matrix_location_pairs": 2500
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
"statsd": {
|
| 270 |
+
"port": 8125,
|
| 271 |
+
"prefix": "valhalla"
|
| 272 |
+
},
|
| 273 |
+
"thor": {
|
| 274 |
+
"clear_reserved_memory": false,
|
| 275 |
+
"costmatrix_check_reverse_connection": false,
|
| 276 |
+
"costmatrix_second_pass": false,
|
| 277 |
+
"extended_search": false,
|
| 278 |
+
"logging": {
|
| 279 |
+
"color": true,
|
| 280 |
+
"file_name": "path_to_some_file.log",
|
| 281 |
+
"long_request": 110,
|
| 282 |
+
"type": "std_out"
|
| 283 |
+
},
|
| 284 |
+
"max_reserved_labels_count_astar": 2000000,
|
| 285 |
+
"max_reserved_labels_count_bidir_astar": 1000000,
|
| 286 |
+
"max_reserved_labels_count_bidir_dijkstras": 2000000,
|
| 287 |
+
"max_reserved_labels_count_dijkstras": 4000000,
|
| 288 |
+
"max_reserved_locations_costmatrix": 25,
|
| 289 |
+
"service": {
|
| 290 |
+
"proxy": "ipc:///tmp/thor"
|
| 291 |
+
},
|
| 292 |
+
"source_to_target_algorithm": "select_optimal"
|
| 293 |
+
}
|
| 294 |
+
}
|
custom_files/valhalla_tiles.tar
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2af40ab36c64a70a4feb614115e5b8d989233da6647d02e1bb7c431feae8babf
|
| 3 |
+
size 3821465600
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3.0"
|
| 2 |
+
services:
|
| 3 |
+
valhalla:
|
| 4 |
+
image: ghcr.io/gis-ops/docker-valhalla/valhalla:latest
|
| 5 |
+
container_name: valhalla_latest
|
| 6 |
+
ports:
|
| 7 |
+
- 8002:8002
|
| 8 |
+
#build:
|
| 9 |
+
# context: .
|
| 10 |
+
# args:
|
| 11 |
+
# - VALHALLA_UID=1000
|
| 12 |
+
# - VALHALLA_GID=1000
|
| 13 |
+
volumes:
|
| 14 |
+
- ./custom_files/:/custom_files
|
| 15 |
+
# - ./gtfs_feeds:/gtfs_feeds # only enable with build_transit=True
|
| 16 |
+
environment:
|
| 17 |
+
# Auto-download PBFs from Geofabrik
|
| 18 |
+
# - tile_urls=https://download.geofabrik.de/europe/andorra-latest.osm.pbf https://download.geofabrik.de/europe/albania-latest.osm.pbf
|
| 19 |
+
- server_threads=4 # determines how many threads will be used to run the valhalla server
|
| 20 |
+
- serve_tiles=True # If True, starts the service. If false, stops after building the graph.
|
| 21 |
+
- use_tiles_ignore_pbf=True # load existing valhalla_tiles.tar directly
|
| 22 |
+
- tileset_name=valhalla_tiles # name of the resulting graph on disk
|
| 23 |
+
- build_elevation=False # build elevation with "True" or "Force": will download only the elevation for areas covered by the graph tiles
|
| 24 |
+
- build_admins=False # build admins db with "True" or "Force"
|
| 25 |
+
- build_time_zones=False # build timezone db with "True" or "Force"
|
| 26 |
+
- build_transit=False # build transit, needs existing GTFS directories mapped to /gtfs_feeds
|
| 27 |
+
- build_tar=True # build an indexed tar file from the tile_dir for faster graph loading times
|
| 28 |
+
- force_rebuild=False # forces a rebuild of the routing tiles with "True"
|
| 29 |
+
- update_existing_config=True # if there are new config entries in the default config, add them to the existing config
|
| 30 |
+
# - path_extension=graphs # this path will be internally appended to /custom_files; no leading or trailing path separator!
|
| 31 |
+
# adapt to the expected build time
|
| 32 |
+
# healthcheck:
|
| 33 |
+
# test: curl --fail -s http://localhost:8002/status || exit 1
|
| 34 |
+
# interval: 1s
|
| 35 |
+
# retries: 10
|
| 36 |
+
# start_period: 2s
|
| 37 |
+
# timeout: 1s
|