a-b-street / osm2lanes

A common library and set of test cases for transforming OSM tags to lane specifications
https://a-b-street.github.io/osm2lanes/
Apache License 2.0
34 stars 2 forks source link

Rust: Add NL Autoweg 100km/h #97

Closed droogmic closed 2 years ago

droogmic commented 2 years ago

image

The locale related parts of the code currently are getting a bit hairy. I don't have a good design in mind, so I am waiting to implement some more so I can spot patterns before doing anything.

droogmic commented 2 years ago

It matches quite nicely

image

except for the shoulders being much too wide. I will update the spec to add width to the shoulders as a separate PR.

droogmic commented 2 years ago
Fibonacci/all_same_vec/small_vec                                                                             
                        time:   [26.728 ns 26.750 ns 26.777 ns]
Found 10 outliers among 100 measurements (10.00%)
  1 (1.00%) low severe
  2 (2.00%) low mild
  6 (6.00%) high mild
  1 (1.00%) high severe
Fibonacci/all_same_hashmap/small_vec                                                                            
                        time:   [102.27 ns 102.57 ns 102.94 ns]
Found 7 outliers among 100 measurements (7.00%)
  6 (6.00%) high mild
  1 (1.00%) high severe
Fibonacci/all_same_vec/big_vec                                                                            
                        time:   [317.44 ns 318.72 ns 320.08 ns]
Found 7 outliers among 100 measurements (7.00%)
  4 (4.00%) high mild
  3 (3.00%) high severe
Fibonacci/all_same_hashmap/big_vec                                                                             
                        time:   [5.6465 us 5.6609 us 5.6757 us]
Found 9 outliers among 100 measurements (9.00%)
  7 (7.00%) high mild
  2 (2.00%) high severe