Patrick Niklaus
56d93eb18b
Replace omp atomic with std variant
2014-05-21 21:49:22 +02:00
Dennis Luxen
35c9021bdf
reduce debug verbosity in RestrictionMap
2014-05-21 12:39:52 +02:00
Dennis Luxen
493b13364f
move geographical distance computation to floats
2014-05-21 12:33:54 +02:00
Dennis Luxen
9117b45899
move more distance calculations to float
2014-05-21 10:03:30 +02:00
Dennis Luxen
812cf36d52
use floats instead of doubles for distance computations
2014-05-20 19:29:09 +02:00
Dennis Luxen
1802839a22
add approximator for perpendicular distance
2014-05-20 16:23:47 +02:00
Dennis Luxen
9a2d701e2e
fix issue #1025 :
...
- add function to count directed outgoing edges
- generate correct instruction for staying on a roundabout
- move test from @bug namespace to the general one
2014-05-20 15:40:14 +02:00
Dennis Luxen
69ad3f3365
add curly braces to one line if
2014-05-20 15:37:18 +02:00
Dennis Luxen
0574a60bc2
replace boost::unordered_map, move hash function for pairs into its own header
2014-05-20 14:33:02 +02:00
Dennis Luxen
e490c4afed
use consistent typedef'ed types
2014-05-20 14:33:02 +02:00
Dennis Luxen
d028a30f87
fixes issue #1019 :
...
- fix ignored turn restriction on chains of degree-2 nodes
- add a cucumber test to test for potential regressions
2014-05-20 14:33:02 +02:00
Dennis Luxen
a122a1e8c7
remove comment
2014-05-20 14:33:02 +02:00
Dennis Luxen
8fe09c85b6
move atan2 lookup into trig header
2014-05-20 14:33:02 +02:00
Dennis Luxen
bc951de2a5
use trig functions from std namespace
2014-05-20 14:33:01 +02:00
Dennis Luxen
8983c0f927
move GetBearing(.) function into FixedPointCoordinate
2014-05-20 14:33:01 +02:00
Dennis Luxen
a47467f29b
store facade ptr in c'tor, save a param in sub-sequent function calls
2014-05-20 14:33:01 +02:00
Dennis Luxen
a80815d57a
implements output generation through a dedicated JSON container:
...
- JSON syntax is not scattered over several files, but one place
- Reduces code duplication
- breaking changes:
- new property in json(p) formatted response: "found_alternative": True/False
- returned filenames now response.js(on) or route.gpx
- /hello plugin returns JSON now
2014-05-20 14:33:00 +02:00
Dennis Luxen
acab77f4f8
add simple isValid() function to PhantomNodes
2014-05-20 14:33:00 +02:00
Dennis Luxen
e769821e0f
use range based for loops to traverse graphs
2014-05-13 16:56:30 +02:00
Dennis Luxen
35c5be6475
add missing includes <string> and <limits>
2014-05-10 14:54:46 +02:00
Dennis Luxen
985a8e9f97
removing boost cref and betting on move semantics
2014-05-09 19:10:11 +02:00
Dennis Luxen
5e26e4c22d
replacing all boost unordereds
2014-05-09 18:40:07 +02:00
Dennis Luxen
b3ec9c9323
reformat
2014-05-09 16:48:58 +02:00
Dennis Luxen
84ffedd95d
replace boost::shared_ptr
2014-05-09 16:47:42 +02:00
Dennis Luxen
694ce9d04f
add forgotten include
2014-05-09 15:12:42 +02:00
Dennis Luxen
aebe8572f9
reformat NodeBasedGraph
2014-05-09 14:21:52 +02:00
Patrick Niklaus
e00ef38305
Apply clang-format on BFSComponentExplorer and RestrictionMap
2014-05-09 00:37:05 +02:00
Patrick Niklaus
22d0861f6d
Move BFSComponentExplorer to Contractor/
2014-05-09 00:37:05 +02:00
Patrick Niklaus
5265f38c35
Switched to std::shared_ptr in Contractor/
2014-05-09 00:37:05 +02:00
Patrick Niklaus
5a13c6cc3f
Move BFSComponentExplorer to own header.
2014-05-09 00:05:27 +02:00
Patrick Niklaus
2c0fa2a9f6
Split RestrictionMap and NodeBasedGraph from EdgeBasedGraphFactory
...
First step in an effort to simplify EdgeBasedGraphFactory.
2014-05-09 00:05:27 +02:00
Dennis Luxen
f060dfda40
refactor list of const static int into scoped enum
2014-05-08 18:04:05 +02:00
Dennis Luxen
b0ead129ca
use proper types instead of implicit casts
2014-05-08 16:39:38 +02:00
Dennis Luxen
15a95ff425
remove superflous includes
2014-05-08 15:49:32 +02:00
Dennis Luxen
37b8f97d60
C++11 migration:
...
- use lambda functions instead of binding member functions
- replace boost::mutex by STLs <mutex>
- reformat according to new guidelines
2014-05-08 15:47:48 +02:00
Dennis Luxen
9587923e55
make variable names consistent, migrate Plugins
2014-05-08 11:15:19 +02:00
Dennis Luxen
bed5c8002f
pass parameter by ref instead of by val:
...
- fixes coverity issue 1212009 Big parameter passed by value
2014-05-08 08:48:55 +02:00
Dennis Luxen
e12ad48822
migrate DataStructures to C++11
2014-05-07 18:39:16 +02:00
Dennis Luxen
6abbb06ff6
replace UINT_MAX by numeric limits max()
2014-05-07 17:25:35 +02:00
Dennis Luxen
5d8b4cb261
use numeric limits instead of C-style UINT_MAX
2014-05-07 15:37:22 +02:00
Dennis Luxen
9ee615020f
break out RouteParameters into compile unit
2014-05-07 15:36:53 +02:00
Dennis Luxen
0ff7ac6aad
migrate HilbertValue class to C++11, use fwd decl, remove boost/integer
2014-05-07 14:47:23 +02:00
Dennis Luxen
859502c504
remove boost/integer include
2014-05-07 14:46:46 +02:00
Dennis Luxen
9c2926ef8a
remove boost/integer include
2014-05-07 14:44:18 +02:00
Dennis Luxen
8e89f80588
make space usage more tight in Coordinate->String conversion
2014-05-07 14:12:57 +02:00
Dennis Luxen
dd4461d473
remove broken assert
2014-05-07 10:39:34 +02:00
Dennis Luxen
2706a0bec1
revert:
...
- GCC <4.8 does not support thread_local keyword.
- sticking with boost::thread_specific_ptr<> for now
2014-05-07 10:39:34 +02:00
Dennis Luxen
46b207e08e
mega-patch:
...
- fix regression that turned tree into binary search
- use C++11 emplace and thread local facility
- sort out includes
- use much faster approximations to save on trigonometry
- use higher fan-out but make leafs a little more compact
- replace raw C-style array by C++11's std::array
2014-05-07 10:39:34 +02:00
Dennis Luxen
66fb5fc9c8
allow approximation of euclidian distances by lat/lon components
2014-05-07 10:38:31 +02:00
Dennis Luxen
2d3fb858ad
move StaticGraph to C++11
2014-05-07 10:38:31 +02:00