Patrick Niklaus
da11113bf1
Fix generate options parameter
2015-12-17 17:57:39 +01:00
Patrick Niklaus
70f4cdd0ca
Replace codes with enum
2015-12-17 16:45:15 +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
7eb2af6cd3
Add snapping regression test for viaroute
2015-12-16 22:51:01 +01:00
Patrick Niklaus
0b1c9d33a5
Don't use phantom node pairs as input for distance table
2015-12-16 22:51:01 +01:00
Patrick Niklaus
648a62112e
Fix snapping to small components
2015-12-16 22:51:01 +01:00
Patrick Niklaus
ff7cb91d9c
Use the Koenig swap and add free swap function for DeallocationVector
2015-12-16 22:03:46 +01:00
Patrick Niklaus
fd5881670d
Use std::swap
2015-12-16 22:03:46 +01:00
Patrick Niklaus
fc8768b79b
Add test for car mode snapping
2015-12-16 22:03:46 +01:00
Patrick Niklaus
914570b053
Don't snap to ferries in car profile
2015-12-16 22:03:46 +01:00
Patrick Niklaus
1a8783cfa0
Fix unused variable warning
2015-12-16 22:03:46 +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
Patrick Niklaus
0ddd473477
Use ::min() instead of -::max()
2015-12-16 19:41:06 +01:00
Patrick Niklaus
2defc8e826
Correctly initialize the min value
2015-12-16 19:35:12 +01:00
Patrick Niklaus
c3756f6b58
Template the vector type in RangeTable
2015-12-16 18:17:04 +01:00
Patrick Niklaus
66af3d260c
Merge pull request #1822 from rparanjpe-tesla/develop
...
name_lengths std::vector --> stxxl::vector
2015-12-16 11:49:59 -05:00
rparanjpe
5c3398c280
name_lengths std::vector --> stxxl::vector
2015-12-15 19:12:33 -08:00
Patrick Niklaus
63a59325f5
Fix SimpleClient
2015-12-16 00:26:13 +01:00
Patrick Niklaus
f1091f97fc
Fix cucumber help text test
2015-12-15 23:38:12 +01:00
Patrick Niklaus
fe9bdfef79
Fix case when not specifing path or sharedmemory to osrm-routed
2015-12-15 22:27:12 +01:00
Patrick Niklaus
a8f11981e3
Include tbb in libosrm.pc
2015-12-15 21:42:32 +01:00
Patrick Niklaus
94651744af
Remove assertion in farest insertion
2015-12-15 21:33:59 +01:00
Patrick Niklaus
24e7d00af5
Fix call to shortest_path from match plugin /cc @danpat
2015-12-15 21:27:03 +01:00
Patrick Niklaus
f85a35b5fc
Fix map matching coordinate check
2015-12-15 21:14:43 +01:00
Patrick Niklaus
a27aad0061
Fix osrm-routed options
2015-12-15 21:08:09 +01:00
Patrick Niklaus
9a332d2f86
Fix osrm.hpp placement
2015-12-15 19:25:26 +01:00
Patrick Niklaus
1264983688
Fix build
2015-12-15 16:31:28 +01:00
Patrick Niklaus
53cee90933
Fix removed server_paths reference
2015-12-15 05:17:31 +01:00
Patrick Niklaus
6daa3290d4
Cleanup library setup
2015-12-14 22:00:20 +01:00
Patrick Niklaus
5a9bee0527
Don't include zero characters in empty names
2015-12-13 20:31:47 +01:00
Daniel Patterson
6914d26187
Correct data entry for the empty string.
...
Rename name_offsets to name_lengths, because that makes more sense.
2015-12-13 11:02:55 -08:00
Daniel Patterson
68c01d09bb
Merge branch 'rparanjpe-tesla-fix_stxxl_write' into develop
2015-12-11 15:40:03 -08:00
rparanjpe
4bf1ad2566
Write out stxxl vector for names correctly
2015-12-11 15:18:55 -08:00
Patrick Niklaus
00ed526fb0
Fix return value for node snapping
2015-12-11 17:37:48 +01:00
Patrick Niklaus
9bdc58069b
Adapt snapping test to viaroute behaviour
2015-12-11 16:53:10 +01:00
Daniel Patterson
4ddbd2efb6
Expose component size variable as command-line option (this allows testing of big/small components in cucumber tests).
...
Add ability to pass extra parameters to during tests.
Limit distance table search so that it doesn't return any big components if they're beyond max_distance.
2015-12-11 16:53:10 +01:00
Daniel Patterson
f3f153cb38
Reduce source/targets to a single phantom node based on the small/big components that are present.
2015-12-11 16:53:10 +01:00
Patrick Niklaus
9414a8085d
Fixed shortest_path when called from match plugin
2015-12-11 05:44:05 +01:00
Patrick Niklaus
33b18df1a0
Merge pull request #1809 from rparanjpe-tesla/develop
...
Use a std::vector in place of stxxl:vector for the names list
2015-12-10 11:13:05 -05:00
rparanjpe
da91d342f7
name_list --> name_char_data and name_offsets
...
-Use stxxl vectors with char and unsigned int containers
-Write out the entire character vector to fil
-Cap the names at length 255 during the parsing so we reduce
the amount of memory used by stxxl vectors and we can do a
direct writing of the character vector to .names
2015-12-09 17:28:34 -08:00
Patrick Niklaus
4950e044ba
Remove warnings and fix tests
2015-12-09 23:37:06 +01:00
Patrick Niklaus
b41af5f580
Incoperate PR comments
2015-12-09 23:37:06 +01:00
Patrick Niklaus
24090d4642
Fix StaticRTree benchmark
2015-12-09 23:37:05 +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
Patrick Niklaus
a8e8f04fa3
std::vector<bool>::emplace_back -> push_back for gcc 4.8
2015-12-09 22:39:10 +01:00
Patrick Niklaus
4ec3102df2
Refactor cucumber tests
2015-12-09 21:17:18 +01:00
Patrick Niklaus
7e722db3ee
Make the API grammar more strict to actually error
2015-12-09 21:17:18 +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