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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
pub const SEED: u64 = 42;
pub mod accuracy {
pub const F64_ABS: f64 = 0.000_001;
pub const _F64_FMT_DIGITS: usize = 7;
}
pub mod speed {
const _MAX_KMH: u16 = 130;
pub const MIN_KMH: u8 = 5;
}
pub mod capacity {
use crate::compiler;
pub const SMALL_VEC_INLINE_SIZE: usize = compiler::GRAPH_DIM;
pub type DimVec<T> = smallvec::SmallVec<[T; SMALL_VEC_INLINE_SIZE]>;
pub const MAX_BYTE_PER_CHUNK: usize = 200 * 1_000_000;
}
pub mod parsing {
pub const NO_SHORTCUT_IDX: &str = "-1";
pub const IS_USING_SHORTCUTS: bool = false;
pub const WILL_NORMALIZE_METRICS_BY_MEAN: bool = false;
pub mod vehicles {
use crate::network::vehicles::Category as VehicleCategory;
pub const CATEGORY: VehicleCategory = VehicleCategory::Car;
pub const ARE_DRIVERS_PICKY: bool = true;
}
}
pub mod writing {
pub use super::parsing::NO_SHORTCUT_IDX;
pub const IGNORE_STR: &str = "_";
pub const IS_WRITING_WITH_HEADER: bool = true;
pub const WILL_DENORMALIZE_METRICS_BY_MEAN: bool = false;
}
pub mod smarts {
pub const IS_WRITING: bool = false;
pub const XML_FILE_NAME: &str = "smarts.xml";
pub mod route_file_format {
pub const VERSION: &str = "1.0";
pub const VEHICLE_TYPE: &str = "CAR";
pub const START_TIME: &str = "0.4";
pub const DRIVER_PROFILE: &str = "NORMAL";
}
}
pub mod routing {
pub const ALPHA: f64 = 1.0;
pub const TOLERATED_SCALE_INF: f64 = std::f64::INFINITY;
pub const TOLERATED_SCALE: f64 = std::f64::INFINITY;
pub const IS_USING_CH_LEVEL_SPEEDUP: bool = true;
}
#[cfg(feature = "gpl")]
pub mod balancing {
use crate::{
approximating::Approx,
configs,
helpers::err,
network::{EdgeIdx, Graph},
};
use kissunits::distance::Kilometers;
use log::{info, warn};
use std::cmp::max;
pub const INIT_WORK_SIZE: usize = 50;
pub const WORK_SIZE_PLUS: usize = 30;
pub const WORK_SIZE_MINUS: usize = 10;
pub const NUM_THREADS: usize = 4;
pub const IS_ERR_WHEN_METRIC_IS_ZERO: bool = true;
pub mod stats {
pub const DIR: &str = "stats";
pub mod files {
pub const ABS_WORKLOADS: &str = "abs_workloads.csv";
}
pub mod csv_names {
pub const NUM_ROUTES: &str = "num_routes";
}
}
pub mod files {
pub const ITERATION_CFG: &str = "iteration.yaml";
}
pub fn _calc_num_vehicles(km: Kilometers) -> u64 {
max(1, (km / Kilometers(0.0075)) as u64)
}
pub fn update_new_metric(
iteration: usize,
abs_workloads: &Vec<usize>,
graph: &mut Graph,
balancing_cfg: &configs::balancing::Config,
) -> err::Feedback {
let old_metric_idx = graph
.cfg()
.edges
.metrics
.idx_of(&balancing_cfg.optimization.metric_id);
let mut new_metrics: Vec<_> = abs_workloads.iter().map(|&w| w as f64).collect();
let mut metrics = graph.metrics_mut();
let mean: f64 = new_metrics.iter().sum::<f64>() / (new_metrics.len() as f64);
if Approx(mean) == Approx(0.0) {
return Err(err::Msg::from(
"The new workload-metric's mean is zero, hence no normalization can be done.",
));
}
for new_metric in &mut new_metrics {
*new_metric /= mean;
}
for (edge_idx, new_metric) in new_metrics.iter_mut().enumerate() {
*new_metric = {
let old_metric = metrics[EdgeIdx(edge_idx)][*old_metric_idx];
match balancing_cfg.optimization.method {
configs::balancing::OptimizationMethod::ExplicitEuler { correction } => {
old_metric + (*new_metric - old_metric) * correction
}
configs::balancing::OptimizationMethod::Averaging => {
(iteration as f64 * old_metric + *new_metric) / ((iteration + 1) as f64)
}
}
};
}
if let Some(min_new_metric) = balancing_cfg.min_new_metric {
for new_metric in &mut new_metrics {
if Approx(*new_metric) <= Approx(min_new_metric) {
*new_metric = min_new_metric;
}
}
} else {
let mut zero_metric_msg = None;
for new_metric in &new_metrics {
if Approx(new_metric) <= Approx(&0.0) {
zero_metric_msg = Some(format!(
"{}{}",
"The new metric contains zero-values,",
" which could lead to many shortcuts or an inefficient Dijkstra.",
));
if balancing_cfg.is_err_when_metric_is_zero {
return Err(err::Msg::from(
zero_metric_msg
.expect("The variable 'zero_metric_msg' should be some."),
));
}
}
}
if let Some(msg) = zero_metric_msg {
warn!("{}", msg);
}
}
let mean: f64 = new_metrics.iter().sum::<f64>() / (new_metrics.len() as f64);
if Approx(mean) <= Approx(0.0) {
return Err(err::Msg::from(
"The new workload-metric's mean is zero, hence no normalization can be done.",
));
}
for new_metric in &mut new_metrics {
*new_metric /= mean;
}
if let Some(means) = metrics.means() {
means[*old_metric_idx] = mean;
info!("New workload-metric has mean: {}", means[*old_metric_idx]);
}
for (edge_idx, new_metric) in new_metrics.into_iter().enumerate() {
metrics[EdgeIdx(edge_idx)][*old_metric_idx] = new_metric;
}
Ok(())
}
}
#[cfg(feature = "gpl")]
pub mod explorating {
pub mod files {
pub fn capacities(i: usize, n: usize) -> String {
format!("capacities{:0digits$}.csv", i, digits = n.to_string().len())
}
}
}
pub mod network {
pub mod nodes {
pub const LEVEL: usize = 0;
}
use crate::{
defaults,
network::{vehicles::Category as VehicleCategory, StreetCategory},
};
use kissunits::speed::KilometersPerHour;
use log::warn;
use osmpbfreader::Way;
use std::{cmp::max, fmt, fmt::Display, str::FromStr};
impl StreetCategory {
fn lane_count(&self) -> u8 {
match self {
StreetCategory::Motorway => 3,
StreetCategory::MotorwayLink => 1,
StreetCategory::Trunk => 2,
StreetCategory::TrunkLink => 1,
StreetCategory::Primary => 2,
StreetCategory::PrimaryLink => 1,
StreetCategory::Secondary => 1,
StreetCategory::SecondaryLink => 1,
StreetCategory::Tertiary => 1,
StreetCategory::TertiaryLink => 1,
StreetCategory::Unclassified => 1,
StreetCategory::Residential => 1,
StreetCategory::LivingStreet => 1,
StreetCategory::Service => 1,
StreetCategory::Track => 1,
StreetCategory::Road => 1,
StreetCategory::Cycleway => 1,
StreetCategory::Pedestrian => 1,
StreetCategory::Path => 1,
}
}
fn maxspeed(&self) -> KilometersPerHour {
KilometersPerHour(match self {
StreetCategory::Motorway => 130,
StreetCategory::MotorwayLink => 50,
StreetCategory::Trunk => 100,
StreetCategory::TrunkLink => 50,
StreetCategory::Primary => 100,
StreetCategory::PrimaryLink => 30,
StreetCategory::Secondary => 70,
StreetCategory::SecondaryLink => 30,
StreetCategory::Tertiary => 70,
StreetCategory::TertiaryLink => 30,
StreetCategory::Unclassified => 50,
StreetCategory::Residential => 50,
StreetCategory::LivingStreet => 15,
StreetCategory::Service => 20,
StreetCategory::Track => 30,
StreetCategory::Road => 50,
StreetCategory::Cycleway => 25,
StreetCategory::Pedestrian => 5,
StreetCategory::Path => 15,
} as f64)
}
pub fn is_for(&self, vehicle_category: &VehicleCategory, is_driver_picky: bool) -> bool {
match vehicle_category {
VehicleCategory::Car => self.is_for_vehicles(is_driver_picky),
VehicleCategory::Bicycle => self.is_for_bicycles(is_driver_picky),
VehicleCategory::Pedestrian => self.is_for_pedestrians(is_driver_picky),
}
}
fn is_for_vehicles(&self, is_driver_picky: bool) -> bool {
match self {
StreetCategory::Motorway => true,
StreetCategory::MotorwayLink => true,
StreetCategory::Trunk => true,
StreetCategory::TrunkLink => true,
StreetCategory::Primary => true,
StreetCategory::PrimaryLink => true,
StreetCategory::Secondary => true,
StreetCategory::SecondaryLink => true,
StreetCategory::Tertiary => true,
StreetCategory::TertiaryLink => true,
StreetCategory::Unclassified => true,
StreetCategory::Residential => true,
StreetCategory::LivingStreet => true,
StreetCategory::Service => false,
StreetCategory::Track => !is_driver_picky,
StreetCategory::Road => false,
StreetCategory::Cycleway => false,
StreetCategory::Pedestrian => false,
StreetCategory::Path => false,
}
}
fn is_for_bicycles(&self, is_driver_picky: bool) -> bool {
match self {
StreetCategory::Motorway => false,
StreetCategory::MotorwayLink => false,
StreetCategory::Trunk => false,
StreetCategory::TrunkLink => false,
StreetCategory::Primary => !is_driver_picky,
StreetCategory::PrimaryLink => !is_driver_picky,
StreetCategory::Secondary => !is_driver_picky,
StreetCategory::SecondaryLink => !is_driver_picky,
StreetCategory::Tertiary => true,
StreetCategory::TertiaryLink => true,
StreetCategory::Unclassified => true,
StreetCategory::Residential => true,
StreetCategory::LivingStreet => true,
StreetCategory::Service => true,
StreetCategory::Track => !is_driver_picky,
StreetCategory::Road => false,
StreetCategory::Cycleway => true,
StreetCategory::Pedestrian => !is_driver_picky,
StreetCategory::Path => !is_driver_picky,
}
}
fn is_for_pedestrians(&self, _is_driver_picky: bool) -> bool {
match self {
StreetCategory::Motorway => false,
StreetCategory::MotorwayLink => false,
StreetCategory::Trunk => false,
StreetCategory::TrunkLink => false,
StreetCategory::Primary => false,
StreetCategory::PrimaryLink => false,
StreetCategory::Secondary => false,
StreetCategory::SecondaryLink => false,
StreetCategory::Tertiary => false,
StreetCategory::TertiaryLink => false,
StreetCategory::Unclassified => false,
StreetCategory::Residential => true,
StreetCategory::LivingStreet => true,
StreetCategory::Service => true,
StreetCategory::Track => true,
StreetCategory::Road => false,
StreetCategory::Cycleway => false,
StreetCategory::Pedestrian => true,
StreetCategory::Path => true,
}
}
pub fn from(way: &Way) -> Option<StreetCategory> {
way.tags.get("highway").and_then(|highway_tag_value| {
match format!("highway:{}", highway_tag_value).parse::<StreetCategory>() {
Ok(highway_tag) => Some(highway_tag),
Err(is_unknown) => {
if is_unknown {
warn!(
"Unknown highway-tag `highway:{}` of way-id `{}` -> ignored",
highway_tag_value, way.id.0
);
}
None
}
}
})
}
pub fn parse_lane_count(&self, _way: &Way) -> u8 {
self.lane_count()
}
pub fn parse_maxspeed(&self, way: &Way) -> KilometersPerHour {
let snippet = match way.tags.get("maxspeed") {
Some(snippet) => snippet,
None => return self.maxspeed(),
};
match snippet.parse::<u16>() {
Ok(maxspeed) => {
KilometersPerHour(max(defaults::speed::MIN_KMH.into(), maxspeed) as f64)
}
Err(_) => match snippet.trim().to_ascii_lowercase().as_ref() {
"de:motorway"
=> StreetCategory::Motorway.maxspeed(),
| "100, 70"
| "100; 50"
| "100;70;50"
| "100;70"
| "100;80"
| "100|70"
| "50; 100"
| "50;100"
| "60 mph"
=> KilometersPerHour(100.0),
| "50 mph"
| "60;80"
| "80;60"
=> KilometersPerHour(80.0),
"70; 50"
| "50;70"
| "50; 70"
| "40 mph"
=> KilometersPerHour(70.0),
"60;50"
=> KilometersPerHour(60.0),
| "20; 50"
| "30 mph"
| "30,50"
| "30; 50"
| "30;50"
| "50; 30"
| "50;30"
| "50b"
| "5ß"
| "de:urban"
| "maxspeed=50"
=> KilometersPerHour(50.0),
| "20 mph"
| "30 @ (mo-fr 06:00-18:00)"
| "30 kph"
| "30;10"
| "30; 40"
| "3ß"
| "conditional=30 @ (mo-fr 06:00-22:00)"
| "de:zone:30"
| "de:zone30"
| "zone:maxspeed=de:30"
=> KilometersPerHour(30.0),
"15 mph"
=> KilometersPerHour(25.0),
"2ß"
=> KilometersPerHour(20.0),
"de:bicycle_road"
=> StreetCategory::Cycleway.maxspeed(),
| "10 mph"
| "10#"
| "1ß"
| "3 mph"
| "4-6"
| "4-7"
| "5 mph"
| "6 km/h"
| "6,5"
| "7-10"
| "de:living_street"
| "de:walk"
| "schrittgeschwindigkeit"
| "walk"
=> StreetCategory::LivingStreet.maxspeed(),
| "*"
| "20:forward"
| "30+"
| "at:rural"
| "at:urban"
| "cz:urban"
| "de:274.1[30]"
| "de:rural"
| "de"
| "fixme:höchster üblicher wert"
| "hgv=30"
| "nome"
| "none"
| "posted time dependent"
| "signal"
| "signals"
| "variable"
=> self.maxspeed(),
_ => {
warn!(
"Unknown maxspeed `{}` of way-id `{}` -> default: (`{}`,`{}`)",
snippet,
way.id.0,
self,
self.maxspeed()
);
self.maxspeed()
}
},
}
}
pub fn parse_oneway(&self, way: &Way) -> (bool, bool) {
let is_oneway = true;
let is_reverse = true;
match way.tags.get("oneway") {
Some(oneway_value) => {
match oneway_value.trim().to_ascii_lowercase().as_ref() {
| "1"
| "left;through"
| "motor_vehicle"
| "recommended"
| "shelter"
| "use_sidepath"
| "yes + oneway:bicycle=no"
| "yes"
=> (is_oneway, !is_reverse),
| "´-1"
| "-1"
| "-1;no"
=> (is_oneway, is_reverse),
| "alternating"
| "bicycle"
| "cycle_barrier"
| "fixme"
| "no"
| "reversible"
| "undefined"
| "unknown"
| "yes @ (2018 aug 0 - 2018 dec 21)"
| "yes;no"
=> (!is_oneway, !is_reverse),
_ => {
warn!(
"Unknown oneway `{}` of way-id `{}` -> default: `oneway=no`",
oneway_value, way.id.0
);
(!is_oneway, !is_reverse)
}
}
}
None => (!is_oneway, !is_reverse),
}
}
}
impl FromStr for StreetCategory {
type Err = bool;
fn from_str(s: &str) -> Result<StreetCategory, bool> {
let is_unknown = true;
match s.trim().to_ascii_lowercase().as_ref() {
| "highway:motorway"
=> Ok(StreetCategory::Motorway),
| "highway:motorway_link"
=> Ok(StreetCategory::MotorwayLink),
| "highway:trunk"
=> Ok(StreetCategory::Trunk),
| "highway:trunk_link"
=> Ok(StreetCategory::TrunkLink),
| "highway:primary"
=> Ok(StreetCategory::Primary),
| "highway:primary_link"
=> Ok(StreetCategory::PrimaryLink),
| "highway:secondary"
=> Ok(StreetCategory::Secondary),
| "highway:secondary_link"
=> Ok(StreetCategory::SecondaryLink),
| "highway:tertiary"
=> Ok(StreetCategory::Tertiary),
| "highway:tertiary_link"
| "highway:traffic_calming"
| "highway:unclassified_link"
=> Ok(StreetCategory::TertiaryLink),
| "highway:give_way"
| "highway:unclassified"
| "highway:unclasified"
=> Ok(StreetCategory::Unclassified),
| "highway:area:residential"
| "highway:asphalt"
| "highway:junction"
| "highway:mini_roundabout"
| "highway:residential"
=> Ok(StreetCategory::Residential),
| "highway:living_street"
=> Ok(StreetCategory::LivingStreet),
| "highway:razed:service"
| "highway:service;yes"
| "highway:service"
| "highway:sevice"
| "highway:service2"
| "highway:swervice"
=> Ok(StreetCategory::Service),
| "highway:byway"
| "highway:historic"
| "highway:path;unclassified"
| "highway:tra#"
| "highway:track"
| "highway:track;path"
| "highway:trank"
| "highway:track; cycleway; cycleway; track; track"
=> Ok(StreetCategory::Track),
| "highway:4"
| "highway:bridge"
| "highway:fixme"
| "highway:parking_aisle"
| "highway:road"
| "highway:yes"
=> Ok(StreetCategory::Road),
| "highway:cycleway"
| "highway:bridleway"
=> Ok(StreetCategory::Cycleway),
| "highway:access_ramp"
| "highway:access"
| "highway:alley"
| "highway:corridor"
| "highway:crossing"
| "highway:elevator"
| "highway:footpath"
| "highway:footway rad frei"
| "highway:footway;service"
| "highway:footway"
| "highway:fo"
| "highway:f"
| "highway:pa"
| "highway:pedestrian"
| "highway:private_footway"
| "highway:ramp"
| "highway:schoolyard"
| "highway:sidewalk"
| "highway:stairs"
| "highway:steps"
| "highway:trail"
| "highway:virtual"
| "highway:vitrual"
| "highway:yes;footway"
=> Ok(StreetCategory::Pedestrian),
| "highway:informal_path"
| "highway:ladder"
| "highway:path---"
| "highway:path;steps"
| "highway:path"
| "highway:path/cycleway"
| "highway:pathless"
=> Ok(StreetCategory::Path),
| "highway:85"
| "highway:abondoned"
| "highway:abandoned:highway"
| "highway:abandoned:path"
| "highway:abandoned:service"
| "highway:abandoned"
| "highway:bus_guideway"
| "highway:bus_stop"
| "highway:bus"
| "highway:busway"
| "highway:centre_line"
| "highway:climbing_access"
| "highway:common"
| "highway:under construction"
| "highway:construction"
| "highway:constuction"
| "highway:demolished"
| "highway:dismantled"
| "highway:disused:track"
| "highway:disused"
| "highway:duckboards"
| "highway:emergency_access_point"
| "highway:emergency_bay"
| "highway:escalator"
| "highway:escape"
| "highway:foot"
| "highway:fuel"
| "highway:in planung"
| "highway:island"
| "highway:layby"
| "highway:loading_place"
| "highway:lohwiese"
| "highway:never_built"
| "highway:nicht mehr in benutzung"
| "highway:no"
| "highway:none"
| "highway:p"
| "highway:passing_place"
| "highway:piste"
| "highway:place"
| "highway:planned"
| "highway:platform"
| "highway:private"
| "highway:project"
| "highway:projected"
| "highway:proposed"
| "highway:raceway"
| "highway:razed"
| "highway:removed"
| "highway:rest_area"
| "highway:ser"
| "highway:sere"
| "highway:services"
| "highway:stop_line"
| "highway:stop"
| "highway:street_lamp"
| "highway:tidal_path"
| "highway:traffic_island"
| "highway:traffic_signals"
| "highway:turning_circle"
| "highway:turning_loop"
| "highway:unused"
| "highway:via_ferrata"
| "highway:virtual_rail"
=> Err(!is_unknown),
_ => Err(is_unknown),
}
}
}
impl Display for StreetCategory {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"{}",
match &self {
StreetCategory::Motorway => "motorway",
StreetCategory::MotorwayLink => "motorway_link",
StreetCategory::Trunk => "trunk",
StreetCategory::TrunkLink => "trunk_link",
StreetCategory::Primary => "primary",
StreetCategory::PrimaryLink => "primary_link",
StreetCategory::Secondary => "secondary",
StreetCategory::SecondaryLink => "secondary_link",
StreetCategory::Tertiary => "tertiary",
StreetCategory::TertiaryLink => "tertiary_link",
StreetCategory::Unclassified => "unclassified",
StreetCategory::Residential => "residential",
StreetCategory::LivingStreet => "living_street",
StreetCategory::Service => "service",
StreetCategory::Track => "track",
StreetCategory::Road => "road",
StreetCategory::Cycleway => "cycleway",
StreetCategory::Pedestrian => "pedestrian",
StreetCategory::Path => "path",
}
)
}
}
}