Moritz Kobitzsch
8135f08958
restructure for review remarks
2017-07-31 09:36:25 +02:00
Moritz Kobitzsch
645b1ffd75
add testcases to highlight limitation of via-way handling
2017-07-31 09:36:25 +02:00
Moritz Kobitzsch
8d0202d240
Add data structure to allow identification of via-way turns during creation of edge-based-graph
...
initial version of handling via-way turn restrictions (this is dirty)
- requires update of data structures
- requires clean-up
- requires optimisation
2017-07-31 09:36:25 +02:00
Moritz Kobitzsch
1f7aa6f812
adding tests to highlight via-way-restriciton development
2017-07-31 09:36:25 +02:00
Daniel Patterson
be5fc50136
Save both forward and reverse datasources.
2017-07-27 14:45:28 -07:00
Moritz Kobitzsch
0affec8f17
handle throughabouts -- do not announce going through
2017-07-26 10:37:20 +02:00
Daniel Patterson
dac6bb27aa
Don't include turn costs when calculation weight/duration/speed annotations.
2017-07-25 15:14:45 -06:00
Daniel J. Hofmann
54960f9b5d
Adds lane anticipation Oak St -> Franklin St -> Fell St scenario
2017-07-21 19:04:55 +02:00
Daniel J. Hofmann
ababeb3a69
Makes construction=minor ways routable again, see #4258
2017-07-19 16:24:45 +00:00
Patrick Niklaus
440dccb81b
Move classes to intersection object and don't emit notifications
2017-07-18 16:48:22 +00:00
Emil Tin
e413b25cd9
profiles api v2
2017-07-18 10:09:22 +00:00
Daniel J. Hofmann
5ece65cade
Trigger lane anticipation based on distance, see discussion in #4260
2017-07-18 11:23:46 +02:00
Moritz Kobitzsch
f2f00b99e0
remove usage of use-lane completely
2017-07-18 11:23:46 +02:00
Moritz Kobitzsch
7b755d6f8b
deprecate use-lane -- the information can be found in the intersections array
2017-07-18 11:23:46 +02:00
Moritz Kobitzsch
30b8225812
only consider allowed entries when continuing on motorways
2017-07-13 08:59:01 +00:00
Moritz Kobitzsch
54530a14e9
add test indicating missdetection of continuing on motorways
2017-07-13 08:59:01 +00:00
Daniel J. Hofmann
5e9397fcca
Canonicalizes all OSM string list handling in the profiles
2017-07-12 22:09:01 +00:00
Daniel J. Hofmann
6a555a477b
Discards construction and proposed ways, resolves #4230
2017-07-10 10:34:20 +02:00
Emil Tin
5ede5577d1
avoid fuzzy ferry test
2017-07-07 16:16:13 +00:00
Emil Tin
0bfbe5ad16
handle startpoint in bicycle profile, add tests
2017-07-07 16:16:13 +00:00
Daniel J. Hofmann
8c5ac84f0c
Lets approaches cuke test run under testbot profile, resolves #4181
...
🥒 🚗 -> 🤖
2017-07-06 14:40:21 +00:00
Patrick Niklaus
44739f2dc3
Allow users to specify a class for each way
...
This adds the ability to mark ways with a user-defined
class in the profile. This class information will be included
in the response as property of the RouteStep object.
2017-07-06 09:17:49 +00:00
Patrick Niklaus
d52d530cbe
Fix indentation and dead-code from c&p in cucumber to silence eslint
2017-07-05 07:57:46 +00:00
Moritz Kobitzsch
4c7aa8f1c0
only consider narrow turns onto through streets straight
2017-07-04 22:03:04 +00:00
Moritz Kobitzsch
2522f70f86
add test case illustrating 4205
2017-07-04 22:03:04 +00:00
Daniel J. Hofmann
ba2a0b3566
Adds more exits cucumber scenarios
2017-07-04 20:58:19 +00:00
Daniel J. Hofmann
7d900e3b5a
Implements Exit Numbers + Names (junction:ref
way tag for now)
2017-07-04 20:58:19 +00:00
Michael Krasnyk
1bee82e288
Make safety penalties graduation for primary, secondary and tertiary
2017-07-03 21:58:32 +00:00
Michael Krasnyk
a41caf0efb
Adjustment of bicycle profile to review comments
2017-07-03 21:58:32 +00:00
Michael Krasnyk
a3e0eb03db
Implement bicycle safety penalty
2017-07-03 21:58:32 +00:00
Patrick Niklaus
34f62b4894
Add test case for safety features on cycleways
2017-07-03 21:58:32 +00:00
Michael Krasnyk
b28077a437
Use rate rounding up to tenth in routability tests
2017-07-03 21:58:32 +00:00
Michael Krasnyk
e42c23686b
Edge case for MLD matrix plugin
2017-07-03 14:57:52 +00:00
Michael Krasnyk
d98f1a2632
Update "Multi level routing" test
2017-07-03 14:57:52 +00:00
Michael Krasnyk
5a29e29535
Add matrix tests that checks MLD overlay
2017-07-03 14:57:52 +00:00
Moritz Kobitzsch
d660c1609c
don't collapse u-turns into combined turns
2017-06-30 09:25:03 +00:00
Michael Krasnyk
74bc8966a8
Test case with incorrect u-turn collapsing
...
http://map.project-osrm.org/?z=18¢er=52.169237%2C10.032722&loc=52.168628%2C10.030759&loc=52.168707%2C10.030952&loc=52.168457%2C10.030432&hl=en&alt=0
2017-06-30 09:25:03 +00:00
Michael Krasnyk
9d8a3e3c97
Propagate lane data across traffic lights
2017-06-29 15:10:37 +00:00
Michael Krasnyk
a308b86056
Test case for #4189
2017-06-29 15:10:37 +00:00
Michael Krasnyk
df4f0d043a
Added driveway handler
2017-06-29 15:07:32 +00:00
Michael Krasnyk
09df8d47a5
Re-enable edge-weight-updates-over-factor test
2017-06-27 13:02:53 +02:00
Emil Tin
9922c0f4f7
adjust tests, cycleway allows cycling on footway
2017-06-22 14:20:42 +00:00
Emil Tin
f27434f2fb
fixes #4060 , incorrect cycling against oneways
2017-06-22 14:20:42 +00:00
Daniel J. Hofmann
df000debe9
Adapts obvious turn classification: no longer take entry_allowed into account, resolves #3987
2017-06-21 18:09:32 +02:00
Daniel J. Hofmann
31511416ed
Adds a failing test case for obvious turn at the end of the road, see #3987
2017-06-21 18:09:32 +02:00
Lev Dragunov
dc9b4bcfec
Time information for maximum distance in matching
2017-06-17 17:33:33 +00:00
Daniel J. Hofmann
de1d5f199f
Uses correct coefficients for local optimality in CH alternatives
...
The alpha constant is for the local optimality T-Test threshold.
Before we used epsilon for the T-Test threshold, but the epsilon
constant is meant to be used for the stretch test(s) only.
This changeset fixes the local optimality T-Test and uses the
epsilon constant for the two stretch tests:
- We test the stretch for the total route against epsilon and
- We test the detour against the epsilon now, too
We can discuss if the second stretch test should actually use
epsilon, too, or a adapted value of it - but definitly not alpha.
2017-06-09 13:20:41 +02:00
Michael Krasnyk
9158f69ea0
Failing test for alternative path
2017-06-09 13:20:41 +02:00
Daniel Patterson
5026741652
Make initialization fail with a specific exception if the dataset isn't compatible with the algorithm being used, rather than crashing when a query occurs.
2017-06-08 18:31:51 +00:00
Michael Krasnyk
03e83ec6a0
Fix invalid roundabout instructions for different driving modes, #4129
2017-06-08 15:01:27 +00:00
Michael Krasnyk
9315dc1c73
Test for a roundabout with footway exits, #4129
2017-06-08 15:01:27 +00:00
Patrick Niklaus
0d12d2fd28
Merge pull request #4094 from Project-OSRM/refactor/rapidash
...
Replace timezone shapefile parsing with geojson parsing
2017-06-02 20:01:04 +00:00
Patrick Niklaus
6c7f0edf50
Don't use manual extract commands in weight tests
2017-06-02 18:12:13 +00:00
Patrick Niklaus
0266c9d969
Renumber nodes after running osrm-partition
...
The new numbering uses the partition information
to sort border nodes first to compactify storages
that need access indexed by border node ID.
We also get an optimized cache performance for free
sincr we can also recursively sort the nodes by cell ID.
This implements issue #3779 .
2017-06-02 18:12:13 +00:00
Michael Krasnyk
879de346ea
Add timezone names customization in tests
2017-06-02 17:35:18 +02:00
Michael Krasnyk
50d9c4b34a
Add local time support for windows
2017-06-02 17:35:18 +02:00
Daniel Patterson
1c3cb897c1
Refactor RTree so that .fileIndex only contains EdgeDataT, and all r-tree structure is in the .ramIndex file.
...
Also tunes the BRANCHING_FACTOR a bit to speed up access with this new layout.
2017-06-02 12:15:06 +00:00
karenzshea
0e39320a77
do not run conditional cuke tests by default
2017-06-02 11:15:34 +02:00
karenzshea
f497201322
add check that restrictions are off when not found in timezone polygons
2017-06-02 10:00:07 +02:00
karenzshea
63ea75612b
by default restrictions are off if timezone is not found
2017-06-02 10:00:07 +02:00
karenzshea
564a29141e
add testing geojson files
2017-06-02 10:00:07 +02:00
Moritz Kobitzsch
a92674022a
make all u-turns continue
2017-06-01 12:39:10 +02:00
Moritz Kobitzsch
ceaf065d0e
don't collapse highway ramps into uturns ( #4074 )
2017-06-01 12:39:10 +02:00
Moritz Kobitzsch
9bd2b0deaa
fix invalid turn angle in forks
2017-06-01 11:43:18 +02:00
Michael Krasnyk
dd009322de
Remove roundabout skip as no leavesRoundabout steps after postProcess
2017-06-01 11:13:31 +02:00
Michael Krasnyk
5d4ab4100a
Test for collapsing sliproads after crossing a roundabout, #4100
2017-06-01 11:13:31 +02:00
Daniel J. Hofmann
f3558260b6
Splits turn penalty tests into bicycle and testbot domain, resolves #4067
2017-05-31 10:47:43 +02:00
Daniel J. Hofmann
0317bbb35d
Splits via tests into car and testbot domain, resolves #4061
2017-05-30 16:38:51 +02:00
Daniel J. Hofmann
a4a6ed7e38
Puts approach test into car domain
2017-05-30 16:37:05 +02:00
FILLAU Jean-Maxime
f65299d665
Rename side API
...
Side -> Approach
- DEFAULT -> CURB
- BOTH -> UNRESTRICTED
- remove OPPOSITE param
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
2017-05-30 10:19:41 +00:00
FILLAU Jean-Maxime
f782dfbfd9
Add uturn test case in cucumber for sides param.
...
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
2017-05-30 10:19:41 +00:00
FILLAU Jean-Maxime
ba2bf4f78e
Adding cucumber file test "side_param_feature" for the side parameter.
...
- test on normal segment
- test on oneway segment
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
2017-05-30 10:19:41 +00:00
FILLAU Jean-Maxime
8a54e6a0ec
Adding "sides" params for the sides option tests into java script
...
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
2017-05-30 10:19:41 +00:00
Michael Krasnyk
1d26deb0be
Allow counting of service exits on service roundabouts, see #4075
2017-05-23 18:27:47 +00:00
Michael Krasnyk
ac35757616
[skip ci] Adjust CHANGELOG and the test description
2017-05-23 14:35:23 +02:00
Michael Krasnyk
47f2f17987
Change order of guidance post-processing, fix #4030
2017-05-23 14:35:23 +02:00
Michael Krasnyk
14582fea5f
Added example for roundabout overlapping
2017-05-22 09:33:59 +00:00
Michael Krasnyk
4964d0dcbd
Adjust expectation and remove non-valid assertions
2017-05-19 09:47:47 +00:00
Patrick Niklaus
5c00fc9769
Disable weight update factor test, see issue #4065
2017-05-19 08:25:03 +00:00
Patrick Niklaus
3599d1db8e
Switch code to use packed vector for segment weights/durations
2017-05-19 08:25:03 +00:00
Michael Krasnyk
5c61f00ffa
Add testbot profile to zero-speed-updates.feature
2017-05-19 09:00:23 +02:00
Patrick Niklaus
d8877abf26
Fix weight value for alley
2017-05-16 16:19:17 +00:00
Patrick Niklaus
bce3b68281
Add regression test
2017-05-16 16:19:17 +00:00
Moritz Kobitzsch
f8002480c2
fix continue_straight interaction with bearing specification
2017-05-12 13:38:04 +02:00
Karen Shea
799a677e7a
Conditional turn restriction support ( #3841 )
...
* optionally include condition and via node coords in InputRestrictionContainer
* only write conditionals to disk, custom serialization for restrictions
* conditional turn lookup, reuse timezone validation from
extract-conditionals
* adapt updater to use coordinates/osm ids, remove internal to external map
* add utc time now parameter to contraction
* only compile timezone code where libshp is found, adapt test running
* slight refactor, more tests
* catch invalid via nodes in restriction parsing, set default cucumber
origin to guinée
* add another run to test mld routed paths
* cosmetic review changes
* Simplify Timezoner for windows build
* Split declaration and parsing parts for opening hours
* adjust conditional tests to run without shapefiles
* always include parse conditionals option
* Adjust travis timeout
* Added dummy TZ shapefile with test timezone polygons
* [skip ci] update changelog
2017-05-11 12:13:52 +02:00
Michael Krasnyk
9358aa1128
Disable nodes with invalid segments
2017-05-11 09:13:42 +00:00
Michael Krasnyk
a44b63fbb9
Add response codes of trip and routability queries
2017-05-11 09:13:42 +00:00
Michael Krasnyk
a5bfcd876f
Add response code to test result values
2017-05-09 16:58:23 +00:00
Michael Krasnyk
3de8613843
Added test with an empty CSV file
2017-05-05 22:15:05 +00:00
Michael Krasnyk
6484fed190
Remove generate-edge-lookup argument in feature tests
2017-05-05 22:15:05 +00:00
Patrick Niklaus
21cd1a44e8
Add failing test case for alleys
2017-05-05 17:06:50 +00:00
Michael Krasnyk
334a7b50cd
Use rectified linear unit to prevent negative duration values
2017-05-04 21:03:45 +00:00
Michael Krasnyk
19494984eb
Fix incorrect exit turn invalidation
2017-05-02 16:55:03 +00:00
Daniel J. Hofmann
5532ee627f
Fixes util.format calls in Cucumber support code
2017-05-02 12:52:10 +02:00
Patrick Niklaus
5c4f96e4bc
Fix checking columns if route is not specified
2017-04-20 13:52:13 +00:00
Patrick Niklaus
9974b8b1da
Apply traffic light penalty also for non-turns
2017-04-20 13:52:13 +00:00
Michael Krasnyk
c81baae1b9
Fix incorrect weight fallback for distance-based weights
2017-04-19 08:28:38 +02:00
Michael Krasnyk
dea3144c4d
Use total angle for turn instruction if entry step has large distance
2017-04-12 23:22:44 +00:00
Michael Krasnyk
6698b5e07e
Use fallbacks counter to print a single warning message
2017-04-11 14:55:56 +00:00
Michael Krasnyk
37794a5e8a
Change traffic CSV field value from weight to rate
...
and make the value required.
If the weight name is 'duration' than the rate value
can be computed as speed / 3.6
Issue: https://github.com/Project-OSRM/osrm-backend/issues/3823
2017-04-11 14:55:56 +00:00
Patrick Niklaus
4e9e2ed5bd
Emit a notification when turning on a ferry and don't merge step
2017-04-07 15:29:53 +00:00
Moritz Kobitzsch
e0593c7ca2
add failing test for 3762
2017-04-07 15:29:53 +00:00
Michael Krasnyk
604f4957f7
correctly fail on unimplemented map matching feature
2017-04-06 11:17:23 +00:00
Michael Krasnyk
8f8df969a2
use signed slope to distinguish uphills and downhills
2017-03-30 11:20:13 +02:00
Michael Krasnyk
e39dc3c464
adjust rasterbot test to check split_edges flag
2017-03-30 11:20:13 +02:00
Michael Krasnyk
ac6f07a744
make adaptors::tokenized compatible with boost 1.54
2017-03-29 10:23:42 +00:00
Michael Krasnyk
dac929f8df
Make max-cell-sizes parameter a comma-separated list
2017-03-29 10:23:42 +00:00
Emil Tin
5a2da798c8
fixes speed on cycleway+oneway #3853
2017-03-28 12:07:38 +02:00
Michael Krasnyk
3dcc7132b6
Add max-cell-sizes option to partitioner
2017-03-28 11:53:14 +02:00
Lev Dragunov
497709da13
Review fixes
2017-03-22 10:39:36 +00:00
Lev Dragunov
b95a58591d
Tidying matching without ts case
2017-03-22 10:39:36 +00:00
Lev Dragunov
a49c6f433b
Cucumber tests
2017-03-22 10:39:36 +00:00
Michael Krasnyk
78a199e2fb
Add read-only max_turn_weight in ProfileProperties
2017-03-20 20:06:51 +01:00
Michael Krasnyk
c39690195e
Added traffic tests to MLD testing
2017-03-17 13:20:33 +01:00
Michael Krasnyk
20c6b4682f
MLD regression tests
2017-03-17 13:20:32 +01:00
Michael Krasnyk
97c442482d
Prepare test data for both CH and MLD algorithms
...
Leaving log files opened was intentional to avoid missing output
that can appear `child.on('exit',...)`.
With this approach cucumber tests hit locally maximum number
of opened files, because node.js keeps all log files opened.
2017-03-17 13:20:32 +01:00
Michael Krasnyk
fe5d1a6e74
Add MLD testing to cucumber tests
2017-03-17 12:27:47 +01:00
Michael Krasnyk
c370ddd89a
Add routing algorithm option
2017-03-17 12:27:47 +01:00
Patrick Niklaus
44757729b7
Ignore --generate-edge-lookup and not list it anymore
2017-03-17 11:19:58 +00:00
Patrick Niklaus
23c74af2b5
Fix crash in support code when there are no annotations
2017-03-17 11:19:58 +00:00
Patrick Niklaus
a636e8cc13
Include datasources in .geometries file and refactor .datasource_names
2017-03-10 20:40:59 +00:00
Emil Tin
ee076e6156
cucumber: enable checking mode in routability tables ( #3748 )
...
* cucumber: enable checking mode in routability tables
* show actual mode when expected was none
* minor fixes
2017-03-07 09:56:19 +01:00
Patrick Niklaus
596890a0f4
Fix spelling of access=customer_s_ and add to the restricted list way whitelisted highways
2017-03-06 16:14:26 +00:00
Patrick Niklaus
cc3a4899a2
Only allow restricted access for road of certain highway type
2017-03-03 16:03:41 +00:00
Michael Krasnyk
71e95c92b6
Fix incorrect forward datasources getter in facade
2017-03-03 10:52:34 +00:00
Patrick Niklaus
fbf7521769
Other flakey test
2017-03-02 15:24:51 +00:00
Patrick Niklaus
7c911b3891
Mark test as flaky and track in own issue.
2017-03-02 14:55:52 +00:00
Patrick Niklaus
9f61f72ee8
Print 0 rate
2017-03-02 14:55:52 +00:00
karenzshea
d32ebd57e6
simplify test, add intersection turn test
2017-03-02 14:55:52 +00:00
karenzshea
8e43c8cbce
add restricted penalty on NoTurn turns
2017-03-02 14:55:52 +00:00
Lev Dragunov
07221f5a48
Do not take the current route into account in alternatives_count parameter.
2017-03-01 01:29:00 +00:00
Lev Dragunov
421d336b0f
Cucumber test support for alternatives count parameter
2017-03-01 01:29:00 +00:00
Moritz Kobitzsch
18a50d357f
remove suppressed new names from new tests
2017-02-25 12:17:22 +00:00
Moritz Kobitzsch
6c3390f14d
refactor of post-processing
...
- moves collapse into a dedicated set of functions / files
- make collapse scenarios distinct (slight performance cost)
- reduce verbosity for short name segments (now actually working, was supposed to do so before)
2017-02-25 12:17:22 +00:00
Moritz Kobitzsch
8d83c3adbb
add locations to turn scenarios
...
start assigning turn locations to test / further locations
add locations/make roads not overlapping - staggered
larger grid size for utf tests (new name)
2017-02-25 12:17:22 +00:00
Michael Krasnyk
cd1a73dde6
revert 'directly' method on win32
2017-02-24 16:01:56 +00:00
Michael Krasnyk
82acd59a8e
shared monitor implementation with a conditional variable
...
or a ring buffer with semaphores
2017-02-24 16:01:56 +00:00
yuryleb
5739c27ef4
Corrected car's bridge feature tests
2017-02-23 22:35:15 +00:00
karenzshea
c2727f2029
expose data about turning onto restricted roads to turn function
2017-02-20 12:40:51 +00:00
Moritz Kobitzsch
03bb6dc161
reduce verbosity of use-lane in combination with lane-anticipation
2017-02-15 21:57:48 +00:00
Moritz Kobitzsch
6567e79ec5
explicitly cast to strings for table diffs
2017-02-15 21:54:37 +00:00
Daniel Patterson
73ce44028f
Allow routing on toll roads by default ( #3712 )
2017-02-14 15:20:10 -08:00
karenzshea
1bace1288d
use qi - parser to work with 0 speed file lines
2017-02-13 16:09:25 +00:00
karenzshea
a61b1a3623
round speed to 1 decimal place
2017-02-13 15:49:30 +00:00
karenzshea
921ff43acf
return speed annotations
2017-02-13 15:49:30 +00:00
Moritz Kobitzsch
e4d500f451
fix handling none-tags in presence of multiple turns within
2017-02-13 10:55:40 +00:00
Moritz Kobitzsch
d52ea86cb9
add failing test
2017-02-13 10:55:40 +00:00
Patrick Niklaus
b906f2a628
Fix side road penalties and add test
2017-02-13 09:28:35 +00:00
Patrick Niklaus
d28713b845
Make rate support code a little bit more obvious
2017-02-10 14:27:28 +00:00
Patrick Niklaus
2e6428e917
Fix HOV lane support with penalties
2017-02-10 14:27:28 +00:00
karenzshea
1f3a8d4538
remove units from rate columns in routability testing
2017-02-10 14:27:28 +00:00
karenzshea
140f1ad923
convert speed to meters per second when used to set rate
2017-02-10 14:27:28 +00:00
karenzshea
1c25070572
provide rate and weight headers for checking in routability tests
2017-02-10 14:27:28 +00:00
karenzshea
24fe881d03
hov_penalty, use min penalty rather than aggregate
2017-02-10 14:27:28 +00:00
karenzshea
25ab51f4f0
remove calls to handlers now in handle_penalties
2017-02-10 14:27:28 +00:00
karenzshea
46f96af360
fix merge conflicts
2017-02-10 14:27:28 +00:00
Michael Krasnyk
ce685da92c
use weight_multiplier to convert fallback durations to weights
2017-02-10 13:24:01 +00:00
Kajari Ghosh
2218658969
Trip with Fixed Start and End points (TFSE) ( #3408 )
...
* fixed start and end trip feature to trip service
2017-02-10 05:13:20 -05:00
Michael Krasnyk
28a8154cee
check weights consistency after updates
2017-02-10 09:22:24 +00:00
Michael Krasnyk
112cf55aae
use white list as a set complement of blacklist for bicycle profile
...
http://www.openstreetmap.org/way/4788559
2017-02-08 14:29:28 +00:00
Patrick Niklaus
aa3f208032
Add access=permissive check for all profiles
2017-02-08 14:27:55 +00:00
Daniel J. Hofmann
919386bdaf
Adds access=permissive
routability scenarios, see #3435 .
2017-02-08 14:27:55 +00:00
Patrick Niklaus
ae835cc04f
Blacklist steps from the car profile
2017-02-08 14:27:55 +00:00
Emil Tin
ef4d32a492
improve diff table output
2017-02-08 11:32:33 +00:00
Emil Tin
ddb60c34e6
align cucumber diff tables
2017-02-07 11:42:20 +00:00
karenzshea
ab91a05680
update cucumber suport code to return separate annotations headers
2017-02-07 09:15:16 +00:00
karenzshea
41064e2d7b
revert
2017-02-07 09:15:16 +00:00
karenzshea
8d7aae8687
fix cucumber outputs
2017-02-07 09:15:16 +00:00
karenzshea
7256b6d0d4
update support code to handle variable annotations fields
2017-02-07 09:15:16 +00:00
Michael Krasnyk
6e1c4bfecd
Added indexed array data type with variable and fixed group blocks
2017-02-07 07:41:12 +00:00
Daniel J. Hofmann
cedeb15ade
Adds surface=sett to bicycle profile, resolves #3649
...
References:
- http://taginfo.openstreetmap.org/keys/surface#values
- http://wiki.openstreetmap.org/wiki/Key:surface
2017-02-06 10:54:56 +01:00
Michael Krasnyk
6da4d918d0
Allow bicycle routing without access tag for railways with highway tag
...
http://www.openstreetmap.org/way/24455356
2017-02-03 12:41:26 +00:00
Michael Krasnyk
1628ebb871
Fix assertions in car profile, resolves #3629
...
restrict direction if access tag is missing and can not be derived
from highway tag
http://www.openstreetmap.org/way/4282676
http://www.openstreetmap.org/way/4621857
http://www.openstreetmap.org/way/4898368
2017-02-03 12:41:26 +00:00
Emil Tin
11ee632cfe
car: add tests oneway:<mode> tags
2017-02-01 16:50:18 +01:00
Emil Tin
97c0a74c04
factor out common lua code to helper files
2017-02-01 16:50:18 +01:00
Daniel Patterson
36c944ef53
No need to log the exception stack when it's just a test table difference - this should be a clean error.
2017-01-31 12:05:19 +01:00
Michael Krasnyk
ad594cb2e4
Update review findings
2017-01-27 11:19:37 +01:00
Michael Krasnyk
6b143c5e1d
Use duration in SegmentBlock for duration updates
2017-01-27 11:19:37 +01:00
Michael Krasnyk
25baf51a2c
Add duration to edges and use it in table plugin
2017-01-27 11:19:37 +01:00
Michael Krasnyk
c059d15cb9
Added weight multipliers for speed and turn updates
2017-01-27 11:19:37 +01:00
Patrick Niklaus
279f8aabfb
Allow specifing a weight for routing that is independent of duration
2017-01-27 11:19:37 +01:00
Michael Krasnyk
e463733138
Limit test names to 64 chars to avoid hitting windows MAX_PATH limit
...
also in the change this.child is reset to null in case of error.
2017-01-27 11:19:37 +01:00
Moritz Kobitzsch
c7640903c3
don't emit invalid turns when having u-turns on ferries
2017-01-26 13:08:00 +01:00
Moritz Kobitzsch
b5e289adc3
3605 - fix error in treating end-of-road as choiceless ( #3607 )
2017-01-24 11:23:54 -08:00
Michael Krasnyk
fbc7189cf8
Added speed round-off error test
2017-01-20 12:31:45 +01:00
Michael Krasnyk
e8167b2e4e
Use round for float to fixed coordinate transformations
2017-01-20 12:31:45 +01:00
Michael Krasnyk
75e0b5a5c4
Fix Lua static library linking
2017-01-19 17:06:00 +01:00
Moritz Kobitzsch
6b06c5bd32
fix emitting invalid turn types, now surfacing due to changes in obvious detection
2017-01-18 15:56:48 +01:00
Michael Krasnyk
71044e88f3
try to fix npm tests on windows by direct data loading
2017-01-14 01:14:29 +01:00
Patrick Niklaus
104e23abf3
Restore --max-wait and file_lock for osrm-datastore
2017-01-14 01:14:29 +01:00
Michael Krasnyk
710ba20acc
Add 1ms delay as a workaround for "faster" requests than facade update
...
in osrm-routed
2017-01-14 01:14:29 +01:00
Daniel J. Hofmann
fd57c5b48b
Supports destination:street, resolves #3541
2017-01-13 11:07:01 +05:30
Moritz Kobitzsch
c1f833c80f
fix forks exiting a ferry
2017-01-12 09:58:51 +01:00
Moritz Kobitzsch
06ef3053de
fix coordinate assertion for walking profile with steps
2017-01-11 22:44:23 +01:00
Daniel J. Hofmann
b3483f95a7
Fixes Sliproads onto a roundabout to be classified as sliproads, resolves #3540
2017-01-09 17:46:05 +01:00
Moritz Kobitzsch
32f63e5e0c
add tests for dedicated turn roads
2017-01-09 17:46:05 +01:00
Moritz Kobitzsch
15c8fd326f
Remove assertions that could be triggered by bad data. ( #3469 )
...
When two consecutive nodes have identical coordinates, there is no valid
bearing. For now, make equal nodes have bearing 0.
Full fix still needs to be done via https://github.com/Project-OSRM/osrm-backend/issues/3470 .
2017-01-06 17:10:02 -08:00
Daniel J. Hofmann
b5d5f309a3
Consider number of lanes to cross, resolves #3025 .
...
Lane Anticipation currently triggers on quick steps with lanes. This
changeset makes the "quick" part more dynamic by taking lanes left and
right of the turn into account. The reasoning for this is as follows.
The user can drive on the leftmost or rightmost lane and has to cross
all lanes left or right of the turn, respecitvely.
We scale our threshold appropriately, which now means the threshold
describes the duration the user needs for crossing _a single lane_.
Note: this is a heuristic and assumes the worst case. Which in my
opinion is fine to do since triggering Lane Anticipation in complex
scenarios is desirable.
2017-01-06 12:44:40 +01:00
Michael Krasnyk
2640a319c1
Wrap way.nodes() returned reference into sol::as_table
2017-01-04 08:29:27 +01:00
Moritz Kobitzsch
e6ff17ab2a
refactor merging of segregated roads
...
adjust to generalFindMaximum function
moved parallel detection to ratio/absolute based regression testing
considerably improved detection quality using normalised regression lines
only follow initial direction/narrow turns for parallel detection
2017-01-03 12:32:51 +01:00
Michael Krasnyk
f48bbb78de
Enable npm and library tests on windows
2017-01-03 10:24:48 +01:00
Michael Krasnyk
bd2a5ebe10
Don't report error if osrm-routed was killed by js script
2017-01-03 10:24:48 +01:00
Michael Krasnyk
5db134bbba
Help strings may contain windows extensions
2017-01-03 10:24:48 +01:00
Michael Krasnyk
ed9d10e96c
Tests for profile API version
2016-12-23 15:02:10 +01:00
Moritz Kobitzsch
b9b52cb857
clean-up unused headers, use NoTurn for ferries instead of suppressed
2016-12-23 15:01:02 +01:00
karenzshea
8ffe915395
do not emit turns on ferries
2016-12-23 15:01:02 +01:00
Moritz Kobitzsch
0a2f934c87
add test for falsely classified obvious turn ( #3364 )
2016-12-20 11:55:10 -08:00
Moritz Kobitzsch
3721f8c887
test showing failure to unpack route with u-turns at both ends
2016-12-20 17:41:43 +01:00
Moritz Kobitzsch
f04d146ca3
improve ascii art reflecting tunnels
2016-12-19 09:57:34 +01:00
Kajari
8c50a42ec4
add ascii art to a set of tests
2016-12-19 09:57:05 +01:00
Moritz Kobitzsch
d584bcad11
fix roundabout handling with lanes
...
instead of artificially removing lanes from a roundabout, we don't assing them in the first place.
this also prevents a problem where we would end up collapsing turns with lanes in a roundabout
2016-12-15 13:07:26 +01:00
Daniel J. Hofmann
e48ca65af4
Advanced Roundabouts
...
These kind of roundabouts came up during Lane Handling for roundabouts.
They're called Turbo-roundabouts or Turbine-roundabouts and are very
popular e.g. in Germany and the UK.
Seems like our roundabout handler sometimes is getting confused.
Trying to figure out why, and codifying some scenarios for cucumber.
References:
- https://github.com/Project-OSRM/osrm-backend/pull/2693
2016-12-15 13:07:26 +01:00
Daniel J. Hofmann
94854b5c90
Adds barrier=gate regression tests, see #581
2016-12-15 12:03:24 +01:00
Daniel Patterson
1b51163b1d
Clarify API and ensure bearings returned to users are in the range 0-359
2016-12-15 10:59:17 +01:00
Daniel J. Hofmann
98659fb0a0
Adds failing tests for directional access overrides, discovered in #3345
2016-12-13 17:37:42 +01:00
Daniel Patterson
17e15033e1
Log helpful error message if mmap fails.
2016-12-07 22:03:49 +01:00
Daniel J. Hofmann
875f482203
Refactors and improves the Sliproad Handler, resolves #3109
2016-12-07 19:22:03 +01:00
Moritz Kobitzsch
a28a20a1ba
fix errors in coordinate extractor due to duplicated coordinates
...
fix offset calculation in curve detection
2016-12-07 11:33:58 +01:00
Emil Tin
9461c83511
car profile: handle forward/backward access
2016-12-05 14:15:47 +01:00
Emil Tin
532cbfce13
profiles: Directional helper, some car refactoring
2016-12-05 14:15:47 +01:00
Moritz Kobitzsch
561b7cc58e
Rember Intersection Shapes
...
Changes the processing order in the edge based graph factory.
Instead of iterating over all outgoing edges in order, we compute the edge
expanded graph in the order of intersections.
This allows to remember intersection shapes and re-use them for all possible ingoing edges.
Also: use low accuracry mode for intersections degree 2 intersections
We can use lower accuracy here, since the `bearing`
after the turn is not as relevant for off-route detection.
Getting lost is near impossible here.
2016-12-01 15:24:20 +01:00
Moritz Kobitzsch
5775679f64
fix coordinate extraction / errors in offset detector
2016-12-01 12:16:25 +01:00
Karen Shea
ef087f963d
Merge pull request #3324 from Project-OSRM/constrain-staggering
...
Constrain staggered intersection detection by mode change and intermediary intersections
2016-11-30 07:35:17 -05:00
Moritz Kobitzsch
a1127c3e09
reduce numbers of intersections in findNextIntersection, don't normalise for turn lanes
2016-11-30 10:21:53 +01:00
Daniel J. Hofmann
fe5cc55b0e
support junction = circular in all profiles, add additional tests
...
References:
- https://wiki.openstreetmap.org/wiki/Tag:junction%3Dcircular
- https://lists.openstreetmap.org/pipermail/tagging/2016-November/030520.html
- https://github.com/Project-OSRM/osrm-backend/issues/3361
2016-11-29 13:44:32 +01:00
Moritz Kobitzsch
12d58ace10
add support for junction=circular, allowing named circular junctions to be treated as rotaries
2016-11-29 13:44:32 +01:00
Moritz Kobitzsch
186cc8340a
handle service roads next to roundabouts - ambiguous exit... :(
2016-11-29 11:47:35 +01:00
Michael Krasnyk
e343f71541
Refactor Hilbert values computation
2016-11-28 14:17:12 +01:00
karenzshea
9fe0e91d92
add tests for bridleways
2016-11-22 10:18:55 +01:00
karenzshea
0bd08224bf
add comments, refactor find obvious turn
2016-11-21 13:16:30 -05:00
Patrick Niklaus
b84d70d305
Add regression test for nil values
2016-11-21 12:17:44 +01:00
Patrick Niklaus
f19bf70b55
Account for imprecision in distance computation
2016-11-18 17:46:32 +01:00
Patrick Niklaus
24fa94af59
Remove obsolete test code
2016-11-18 17:46:32 +01:00
karenzshea
6ba36a2bc7
test and control for pushing both ways
2016-11-18 10:13:38 -05:00
karenzshea
039989a339
fix overlapping roads
2016-11-18 09:58:03 -05:00
karenzshea
a7559077a0
add modes columns to bike tests
2016-11-18 09:21:48 -05:00
Daniel J. Hofmann
bbe80192aa
Staggered Intersections for Bike
2016-11-18 08:52:48 -05:00
karenzshea
9b16b757a4
halfway staggered intersection test
2016-11-18 08:52:48 -05:00
karenzshea
3680fc9d90
add check/test for intermediary intersections
2016-11-18 08:52:47 -05:00
karenzshea
836e8bdff0
don't collapse with mode changes
2016-11-18 08:52:47 -05:00
Moritz Kobitzsch
78583d2c8c
fix getTurnDirection, widen straight
range, adjust tests accordingly
2016-11-14 11:09:14 +01:00
Moritz Kobitzsch
e84a0ea37c
reduce coordinate_extraction overhead. slowdown reduced by 30 percent
2016-11-10 10:44:54 +01:00
Moritz Kobitzsch
88208bfa5d
add testscases for mode changes / additional assertions
2016-11-09 12:55:28 +01:00
Daniel J. Hofmann
ef2261661c
Remove {highway: type} fallback from bike / walk profile, fixes #3231
...
References:
- https://github.com/Project-OSRM/osrm-text-instructions/issues/62#issuecomment-257889721
- https://github.com/Project-OSRM/osrm-text-instructions/pull/63
2016-11-08 14:28:56 +01:00
Moritz Kobitzsch
9c11f4231c
add locations feature to allow testing turn locations, fix minor bug breaking the arrival location
2016-11-08 13:42:15 +01:00
Daniel J. Hofmann
6ac9617d49
Adapt test to returning ref, Take Pronunciation into Account, Fixes name change heuristic usage in UTurn check
2016-11-08 12:14:23 +01:00
Moritz Kobitzsch
ccdebccde1
adjust sliproad handler for empty-name check, illustrate testcase
2016-11-08 12:14:23 +01:00
Daniel J. Hofmann
c1651ccb12
Uses Name Change Heuristic Instead of Comparing Name Ids
...
References:
- https://github.com/Project-OSRM/osrm-backend/issues/2857
- https://github.com/Project-OSRM/osrm-backend/pull/2900
- https://github.com/Project-OSRM/osrm-backend/issues/2909
2016-11-08 12:14:23 +01:00
Kajari Ghosh
f33180f092
request polyline with precision of 5 or 6 positions ( #3220 )
2016-11-07 15:11:21 -05:00
Moritz Kobitzsch
3eeb3cb6c6
fix collapsing of roundabout instructions
2016-11-07 17:16:44 +01:00