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
Moritz Kobitzsch
bc081b7132
refactor route step / intermediate intersections
...
rename intersection (engine version) to IntermediateIntersection
follow coding convention for existing functions, move invalidate into routeStep
moved elongate into route step
move forward-step-signage into route step
replace post-processings `forwardInto` with `RouteStep` functionality. Don't change maneuver in step
separete declaration and implementation
2016-12-22 08:33:27 +01:00
Moritz Kobitzsch
1ba5ff44cc
reduce warnings when compiling tests, add constructor to base parameters, fixes gcc49 unit tests building
2016-12-19 14:24:17 -05:00
Daniel J. Hofmann
b1f6797aab
Adds generate_hints=true
for dropping hints in response, resolves #1789 .
...
Adds an `generate_hints=false` option which lets us skip generating and
emitting hints for Waypoints. This can be used to decrease the response
size when the user does not need hints anyway.
We should think about making `false` the default here in v6.
2016-12-19 12:09:36 +01:00
Daniel J. Hofmann
cbfb055f81
Changes Single Coordinate Geoms from Point to LineString, closes #3425 .
2016-12-09 11:53:06 +01:00
Daniel Patterson
0817cd6dfd
Enforce iteration order so that tiles are encoded consistently on all platforms ( #3393 )
2016-12-02 08:59:39 -08:00
Michael Krasnyk
4f2bb19b0f
Use single precision values in vector<float> initializer list ( #3270 )
2016-11-08 21:06:55 -08:00
Daniel Patterson
cef53c4b56
Fix key/val offset bug.
2016-11-08 11:45:28 -08:00
Daniel Patterson
f96e61ee06
Construct adjacency list and properly traverse it.
2016-11-08 11:45:28 -08:00
Daniel Patterson
d21c8e3800
Add simple check for number of turns found in the tile.
2016-11-08 11:45:28 -08:00
karenzshea
89007ae669
Adapts Tile tests to protozero's strict iterator_range API from @daniel-j-h
2016-10-03 13:07:18 -04:00
Moritz Kobitzsch
d1f1358e48
adjust for comments by daniel-j-h
2016-09-30 17:27:14 +02:00
Daniel Patterson
805d93912d
Construct an adjacency list in order to discover turns.
2016-09-30 17:12:23 +02:00
Lauren Budorick
14e7460465
Include turn information in debug tiles.
2016-09-30 17:12:20 +02:00
Daniel J. Hofmann
6290aeea93
Fixes Tile Unit Test Compilation
2016-09-30 16:58:50 +02:00
Daniel J. Hofmann
e3c1b133bf
Adds a limit for number of results returned in Nearest service, resolves #2872
2016-09-12 11:59:08 +02:00
Daniel Patterson
ec02cdc4cc
Use mmap instead of read - it's a lot faster here.
...
Also clean up construction of STRONG_TYPEDEF so that it can be
packed properly in structs (this explains all the () -> {}) changes
here.
2016-06-27 17:24:30 -07:00
Vladimir Kurchatkin
6bdfe68897
Add feature name to vector tiles ( #2488 )
2016-06-10 11:15:14 -07:00
Daniel J. Hofmann
bb0c2754d3
With empty summaries no longer the case, update library tests accordingly
2016-06-02 00:26:04 +02:00
Patrick Niklaus
6e16eab6ec
Format with clang-format 3.8
2016-05-27 21:05:04 +02:00
Patrick Niklaus
98b83b7208
Fix library test
2016-05-19 16:44:31 +02:00
Moritz Kobitzsch
9c8bf820de
adjusted to in/out. only emit one of them for depart/arrive
2016-05-19 16:44:31 +02:00
Daniel J. Hofmann
bc514926bf
Unit test for trip across component boundaries.
...
Daniel's mental model, with updates from Patrick and staring at the code
(plugins/trip.cpp): Trip first snaps coordinates which in the case of
phantoms that are not only in small components with the same id
switches small components to big ones. Therefore we get either only
small or only big components. Only then the Tarjan SCC decomposes this.
Result: multiple subtrips only happen for islands or continents.
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
9fc16b6a83
Unit test for trip exclusively in big component
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
6b5982d389
Table unit test, revealing position_index -> waypoint_index mismatch
2016-04-22 10:40:03 +02:00
Daniel J. Hofmann
c693f4806b
Unit tests for routing / snapping across components
2016-04-22 10:40:03 +02:00
Patrick Niklaus
da6dbd2159
Revert "Removes summary from legs property"
...
This adds the summary back to the RouteLeg, it now depends on if
`steps=true`.
This reverts commit eaf9993dd9
.
2016-04-21 22:39:16 +02:00
Patrick Niklaus
3e2e10a4c3
Add unit test for tile plugin
2016-04-15 14:48:21 +02:00
karenzshea
324f1739e4
more table tests, break waypoint obj check into header file
2016-04-15 14:46:17 +02:00
karenzshea
1489662f57
start tests for table plugin
2016-04-15 14:46:17 +02:00
Moritz Kobitzsch
dfd180a292
fixing unit tests
2016-04-08 11:21:14 +02:00
karenzshea
6033c05ff0
checks for waypoint index and route lengths
2016-04-07 22:11:28 +02:00
karenzshea
407da8bd15
start match test
2016-04-07 22:11:28 +02:00
Daniel J. Hofmann
eaf9993dd9
Removes summary from legs property
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
4f1ca20dda
Do not rely on alternatives being found in unit tests
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
97401ad99a
Disable steps and alternatives by default
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
29c2a117c0
Adapts tests to case sensitive "Ok" status code.
2016-04-05 22:59:14 +02:00
Patrick Niklaus
a964bec0f8
Add route fixture test
2016-04-05 22:59:14 +02:00
Patrick Niklaus
b65ba5c394
Adapt get_osrm to EngineConfig changes
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
3da27c06c3
Number of waypoints equals number of input coordinates
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
bc7824812b
Make test assumption failure output violation in Route unit tests
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
baf7822340
Hook up small component locations for Nearest response test
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
82ee08fcaf
Provide dummy locations from our fixed monaco dataset
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
9ec46222e3
Makes Nearest plugin adhere to v5 spec for precondition violations, fixes #2108
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
210da11fbb
Unit test for Route service; some failing where v5 spec is unclear
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
ee61ae360d
Unit tests for Tile service; plugin needs improvements: see #2109
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
890e0f4995
Unit tests for Nearest service; one test failing: see #2108
2016-04-05 22:59:14 +02:00
Daniel J. Hofmann
c22453f24a
Tests for config level constraints; table failing: see #2100
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
099a805260
Initial unit tests setup for typed libosrm services
2016-04-05 22:58:32 +02:00
Daniel J. Hofmann
9d893d6d4d
Library tests build system integration
2016-04-05 22:58:32 +02:00