Patrick Niklaus
6991a38703
Run clang-format
2016-01-08 01:31:57 +01:00
Patrick Niklaus
6b18e4f7e9
Add namespace around all files
2016-01-08 01:30:52 +01:00
Patrick Niklaus
4312013552
Fix naming in coordinate_calculation
2016-01-05 12:06:34 +01:00
Patrick Niklaus
028ca5c9d9
Apply clang-format
2016-01-05 12:04:04 +01:00
Daniel J. Hofmann
685d330ee2
Remove license headers from project source files; global license
2016-01-04 19:06:32 +01:00
Mortada Mehyar
93a2e66704
use double precision calculations instead of mixing double and float
2016-01-03 20:44:38 -08:00
Patrick Niklaus
97585bb26a
Fix include paths
2016-01-03 18:47:50 +01:00
Patrick Niklaus
078f71c144
Move files in unit_tests around
2016-01-03 16:37:38 +01:00
Patrick Niklaus
28bfefcac6
Add option to set segments as non-snapable from lua
2015-12-16 22:03:46 +01:00
Patrick Niklaus
bec56522e3
Add stxxl/vector include to range_table test
2015-12-16 22:02:34 +01:00
rparanjpe
5c3398c280
name_lengths std::vector --> stxxl::vector
2015-12-15 19:12:33 -08:00
Patrick Niklaus
4950e044ba
Remove warnings and fix tests
2015-12-09 23:37:06 +01:00
Patrick Niklaus
cdb1918973
Refactor StaticRTree to remove application dependent code
...
StaticRTree now acts like a container, just returning the input data
(NodeBasedEdge) and not PhantomNodes.
2015-12-09 23:37:05 +01:00
Daniel Patterson
f87f18a291
Add support for 64bit OSM node id values.
2015-11-30 12:37:58 -08:00
Patrick Niklaus
aeaf0e7ba8
Fix unit test compilation
2015-11-25 00:27:20 +01:00
Daniel Patterson
8f3482561b
Rename great_circle_distance->haversine_distance, and euclidean_distance->great_circle_distance, because that's what they actually are.
2015-11-17 17:10:06 -05:00
Daniel Patterson
e45656e5bf
Refactor edge expansion into extract phase. New temporary file is generated - '.osrm.ebg' which is used by
2015-10-06 09:23:17 -07:00
Daniel Patterson
d07c0bde80
Adds support for a new b=
parameter on the viaroute
and match
...
plugins, allowing for better nearest neighbor matching when a heading
is known.
2015-10-06 11:15:10 +02:00
Daniel J. Hofmann
5c4a845b55
Remove template-heavy Boost.MPL headers where not needed.
...
This removed mpl headers from the code base, where not needed.
This mostly affects unit tests, where mpl's type list is actually only
used once to automatically generate tests for multiple types (see ref).
In addition, this commit also fixes the includes in the touched headers.
Resulting in 1/ reduces build times and 2/ proper includes.
Reference:
- http://www.boost.org/doc/libs/1_59_0/libs/test/doc/html/boost_test/tests_organization/test_cases/test_organization_templates.html#ref_BOOST_AUTO_TEST_CASE_TEMPLATE
2015-09-28 15:00:20 +02:00
Daniel J. Hofmann
468c01056f
Replace custom replace utility with the stdlib's replace algorithm.
...
This removes the custom `replaceAll` function, replacing it with
`std::replace` from the stdlib's `<algorithm>` header.
This also removes the respective unit test.
More importantly, this removes the dependency on the
`<boost/algorithm/string.hpp>` header in the `string_util.hpp` header.
2015-09-28 15:00:20 +02:00
Daniel J. Hofmann
397078758e
Remove boost/thread from rtree, include header for hash_combine in unit test.
...
The `static_rtree.hpp` header included `<booost/thread.hpp>` without using
anything from this header.
Removing it showed why:
the unit test for the rtree no longer built, since it was missing symbols
for Boost's `hash_combine`, used in the unit test.
Instead of relying on `<boost/thread.hpp>` including the proper header
for `hash_combine` by chance that we only use in the unit test, do the
following:
- remove `<boost/thread.hpp>` from the rtree implementation
- add `<boost/functional/hash.hpp>` to the rtree unit test
As always, include what you use.
2015-09-28 15:00:20 +02:00
Lauren Budorick
bac6703f8e
Implement raster source feature to read data from third-party sources, to be used in lua profiles.
...
* Adds a data structure, RasterSource, to store parsed + queryable data
* Adds bindings for that and relevant data structures as well as source_function and segment_function
* Adds relevant unit tests and cucumber tests
* Bring-your-own-data feature
2015-09-03 22:28:18 -07:00
Huyen Chau Nguyen
74e00cf652
fix some small issues:
...
remove empty unit test
remove compiler directives
move trip related files from routing_algorithms to algorithms
run clang-format on files
fix all std::size_t related issues
improve code by adding std::move()s
clean up includes
fixing several code stye and improvement issues
add several small code improvements
return single scc in SplitUnaccessibleLocations() when theres only one
change ComputeRoute() to return an InternalRouteResult by value
improve some code style issues
2015-09-01 15:20:35 +02:00
Huyen Chau Nguyen
e6eea67eeb
rename all names with round_trip, trip or tsp to trip to standardize the naming
2015-09-01 15:20:34 +02:00
Chau Nguyen
a40b3a98dc
split algorithms in different plugins for better evaluation
...
split tsp brute force algorithm for better testing
refactor and clean up
2015-09-01 15:20:33 +02:00
Patrick Niklaus
49adf2192a
Move calculate_coordinate to algorithms/
...
Fixes #1367
2015-08-12 13:02:18 +02:00
Patrick Niklaus
f838f3427b
Fix static graph test
2015-08-06 15:09:28 +02:00
MoKob
b526cadebd
Initial version of core ch
...
This improves preprocessing times in favour of worse query performance.
Core size can be set over the --core parameater, default is the old
behaviour to fully contract the graph.
2015-08-01 18:00:48 +02:00
Patrick Niklaus
021a1c7a39
Restructure the construction of the undirected graph
2015-07-01 18:07:29 +02:00
Patrick Niklaus
4a7451682b
Fix data_structure test thanks to new assertion
2015-07-01 18:07:29 +02:00
Patrick Niklaus
faa880d60a
Remove unused memebers and rename to currrent style convention
2015-07-01 18:07:29 +02:00
Patrick Niklaus
fd30e82836
Add graph compressor unit tests
2015-07-01 18:07:29 +02:00
Patrick Niklaus
3ef34fbb56
Rename GeometryCompressor and add unit tests
2015-07-01 18:07:29 +02:00
Andreas Gruß
782fba2ce7
updated to 1E6 based polyline format
2015-06-02 13:15:31 +02:00
Andreas Gruß
ee3b296a99
fixed values of test
2015-06-02 12:10:13 +02:00
Andreas Gruß
8b62d04453
test added
2015-06-02 12:09:59 +02:00
Patrick Niklaus
a57fb4f1ab
First step into overhauling the edge storage
2015-06-01 17:22:12 +02:00
Patrick Niklaus
6d43d9f2b6
Add unit test for dynamic graph
...
Also simplify the unit tests.
2015-04-17 00:38:09 +02:00
Dennis Luxen
3a291f5c8e
fix escaping of double quote in JSON response, fixes #1410 and also adds a unit test for that case.
2015-04-02 10:34:40 +02:00
Dennis Luxen
5bed7f292f
add test for printInt() sign correctness
2015-03-30 12:37:39 +02:00
Dennis Luxen
1851a31e66
add unit tests for functions escape_JSON, printInt and replaceAll in string_util.hpp
2015-03-27 18:15:58 +01:00
Dennis Luxen
7e00a86bb4
implement ISO 8601 durations parsing, cf. #1399
2015-03-02 17:18:52 +01:00
Dennis Luxen
3bd27ae8c5
change copyright line from personal names to project
2015-02-19 09:19:51 +01:00
Dennis Luxen
b20b7e65bf
renamed: Util/* -> util/*
2015-01-27 17:47:23 +01:00
Dennis Luxen
bcd73e604c
reformat coordinate and rtree test code
2015-01-22 17:00:48 +01:00
Dennis Luxen
e80ca6553d
use new coordinate interface in unit tests
2015-01-22 16:58:45 +01:00
Dennis Luxen
baacd0e50c
reformat source files
2015-01-22 12:24:54 +01:00
Dennis Luxen
01f3237416
speed up nearest neighbor query by pruning, move coordinate calculations away from library interface
2015-01-20 16:24:49 +01:00
Dennis Luxen
472a567f42
add cmath include to fix call to std::abs() on clang compiler, reorder includes
2015-01-16 17:23:29 +01:00
Dennis Luxen
f3bc1ed3a9
make floating point number literal a float
2015-01-16 17:21:02 +01:00
Patrick Niklaus
1b5d332e93
Add regression test for FixedpointCoordinate
2015-01-16 00:49:43 +01:00
Dennis Luxen
f2b556adfd
umbenannt: UnitTests/* -> unit_tests/*
2015-01-15 18:39:26 +01:00