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
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
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
Patrick Niklaus
49adf2192a
Move calculate_coordinate to algorithms/
...
Fixes #1367
2015-08-12 13:02:18 +02: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
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
f2b556adfd
umbenannt: UnitTests/* -> unit_tests/*
2015-01-15 18:39:26 +01:00