Patrick Niklaus
efc9007cbf
Remore start_phantom/target_phantom because they are useless here
2016-01-07 22:51:37 +01:00
Moritz Kobitzsch
efd33b295a
Refactor guidance generation
2016-01-07 22:51:24 +01:00
Patrick Niklaus
fa4ba42f15
Use a sane gps_precision multipler
2016-01-07 16:30:54 +01:00
Patrick Niklaus
811e29ff1b
Add cmath to geospatial_query
2016-01-07 11:35:35 +01:00
Patrick Niklaus
1da1fa5a31
Fix naming in PhantomNode
2016-01-05 12:41:16 +01:00
Patrick Niklaus
4f7369ed02
Fix naming in FixedPointCoordinate
2016-01-05 12:06:34 +01:00
Patrick Niklaus
4312013552
Fix naming in coordinate_calculation
2016-01-05 12:06:34 +01:00
Patrick Niklaus
ccd3872bf1
Fix naming in ScriptingEnvironment
2016-01-05 12:06:33 +01:00
Patrick Niklaus
b209952ce0
Fix naming of methodes for RouteParameters
2016-01-05 12:06:33 +01:00
Patrick Niklaus
3568de2c6c
Fix missing include
2016-01-05 12:06:33 +01:00
Patrick Niklaus
028ca5c9d9
Apply clang-format
2016-01-05 12:04:04 +01:00
Patrick Niklaus
552cdbfe20
Apply clang-tidy
2016-01-05 11:54:31 +01:00
Daniel J. Hofmann
0d971a70cc
Prevent comment splicing from backslash at end of line
2016-01-05 11:19:18 +01:00
Daniel J. Hofmann
0dda98384b
Bump license year count for headers we install, too
2016-01-05 11:15:30 +01:00
Daniel J. Hofmann
685d330ee2
Remove license headers from project source files; global license
2016-01-04 19:06:32 +01:00
Patrick Niklaus
fce486735b
Merge pull request #1841 from mortada/use_double_not_float
...
use double precision calculations instead of mixing double and float
2016-01-04 11:58:07 +01:00
Mortada Mehyar
a6cb786718
improve comments
2016-01-03 20:50:25 -08: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
bfc6c9b89d
Move files in src/ include/
2016-01-03 16:37:38 +01:00
Patrick Niklaus
78ac3cffde
Add max values for viaroute and trip and reorganize return code handling
...
"status" is now always:
- 200 if the request was successful
- 207 if the result is empty (no path found)
- 400 if the request is invalid
viaroute and trip now have a maximum of 500 and 100 locations
respectively. Override with the --max-viaroute-size and --max-trip-size
parameters.
2015-12-17 04:14:34 +01:00
Patrick Niklaus
63a59325f5
Fix SimpleClient
2015-12-16 00:26:13 +01:00
Patrick Niklaus
9a332d2f86
Fix osrm.hpp placement
2015-12-15 19:25:26 +01:00
Patrick Niklaus
6daa3290d4
Cleanup library setup
2015-12-14 22:00:20 +01:00
Patrick Niklaus
20c45be3b3
Address PR comments
2015-12-09 21:17:18 +01:00
Fabien Girard
f2ee0aad20
Use now 3 parameters for matrix: loc/dst/src
2015-12-09 21:17:18 +01:00
Fabien Girard
478d4a571a
Support rectangular matrix with less sources than targets
2015-12-09 21:17:18 +01:00
Daniel Patterson
f87f18a291
Add support for 64bit OSM node id values.
2015-11-30 12:37:58 -08:00
Daniel Patterson
1536d1c044
Add bearing filter support to viaroute, trip, nearest, and distance
...
table plugins.
Make bearing range configurable by adding a comma-separated second part
to the bearing paramenter, like so:
b=<bearing:0-359>(,<range:0-180>)
If no range is supplied, it defaults to +/- 10 degrees.
2015-11-17 16:35:20 -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
db092c828e
Don't pass by const-value for a read-only view.
...
I can't see a reason we pass by const-value here.
Note: changes API because of the `route_parameters` header.
2015-09-08 23:34:20 +02:00
Huyen Chau Nguyen
e773a80b06
remove possibility to choose algorithm but only use brute force and farthest insertion
2015-09-01 15:20:34 +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
6191b6bee2
add parameter to choose algorithm for tsp calculation and remove redundant code
2015-09-01 15:20:33 +02:00
Daniel J. Hofmann
62b20769ee
Modernize the code base to C++11 standards and beyond.
...
Apply `clang-modernize` (based on Clang 3.6) transformations to the
codebase while making sure to support Clang>=3.4 and GCC>=4.8.
We apply the transformations in parallel to speed up the quite
time consuming process, and use our `clang-format` style file
to automatically format the code respecting our coding conventions.
We use the following self-explanatory transformations:
* AddOverride
* LoopConvert
* PassByValue
* ReplaceAutoPtr
* UseAuto
* UseNullptr
This required a `compile_commands.json` compilation database, e.g.
ccmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=1
for CMake or check Bear for a Makefile based solution (or even Ninja).
git ls-files -x '*.cpp|*.h' | \
xargs -I{} -P $(nproc) clang-modernize -p build -final-syntax-check -format -style=file -summary -for-compilers=clang-3.4,gcc-4.8 -include . -exclude third_party {}
Boom!
References:
* http://clang.llvm.org/extra/clang-modernize.html
* http://clang.llvm.org/extra/ModernizerUsage.html
2015-08-18 12:56:34 +02:00
Andreas Gruß
9b0d3dfaeb
polyline string as parameter added
2015-06-02 12:09:46 +02:00
Patrick Niklaus
8f3feac916
Ensure routed is backwards compatible
2015-04-22 09:49:08 +02:00
Patrick Niklaus
c0e066440c
Use shared memory if no server paths are provided.
...
This caused a bug in the node bindings that would invoke the constructor
without parameters.
2015-04-22 09:49:08 +02:00
Dennis Luxen
8ee82d1e03
replace old-style typefs with using
2015-03-23 17:06:10 +01:00
Patrick Niklaus
d8d46e0f3e
Add routed parameter to limit matching size
2015-03-03 00:48:57 +01:00
Patrick Niklaus
e5830b0116
Add parameters for map matching
2015-03-03 00:48:57 +01:00
Patrick Niklaus
70703c39f3
Add timestamp parameters and reset to beginning of breakage
2015-03-03 00:48:57 +01:00
Dennis Luxen
b0f9a0feb4
rename variable name to be a little more telling
2015-02-19 10:11:49 +01:00
Dennis Luxen
3bd27ae8c5
change copyright line from personal names to project
2015-02-19 09:19:51 +01:00
Dennis Luxen
79b9bdf7ce
rename JSON namespace to osrm::json to avoid namespace clash with V8
2015-02-18 17:27:31 +01:00
Dennis Luxen
dd3b8469dd
renamed: Include/* include/*
2015-01-27 13:17:18 +01:00