Transporter
35ff807e1d
Bugfix Lua 5.4 not working
2021-01-07 10:48:59 +01:00
Michael Bell
58ba3fc84f
Avoid copying ManyToMany table results ( #5923 )
...
Regardless of any copy elision on the returned pair value, the
duration and distance results are always copied.
Fix this by passing rvalue references to std::make_pair.
2021-01-04 08:46:51 -08:00
Denis Chapligin
dddf83db7b
Merge pull request #5908 from systemed/debug_way
...
Profile debug script which fetches a way from OSM
2020-12-21 20:14:37 +02:00
Michael Bell
5266ac1635
Add support for multiple via-way restrictions ( #5907 )
...
Currently OSRM only supports turn restrictions with a single via-node or one
via-way. OSM allows for multiple via-ways to represent longer and more
complex restrictions.
This PR extends the use of duplicate nodes for representng via-way turn
restrictions to also support multi via-way restrictions. Effectively, this
increases the edge-based graph size by the number of edges in multi via-way
restrictions. However, given the low number of these restrictions it
has little effect on total graph size.
In addition, we add a new step in the extraction phase that constructs
a restriction graph to support more complex relationships between restrictions,
such as nested restrictions and overlapping restrictions.
2020-12-20 13:59:57 -08:00
Denis Chapligin
eb1d399f3b
Merge pull request #5894 from xlaussel/avoid_samelookup_in_heap_map
...
Avoid samelookup in heap map
2020-12-20 22:17:49 +02:00
Andrey Gurevich
6bf68fb0c6
Update http.md ( #5914 )
...
Looks like a mistake in the description of Table api
2020-12-20 08:39:35 -08:00
Alin Mindroc
33b2a193f9
Fix node14 compilation issues ( #5918 )
...
* Use Nan:: getters and setters for node 12/14 compatibility
* Drop support for publishing node 8 bindings, add publishing support for node 12, 14
Co-authored-by: Daniel Patterson <danpat@danpat.net>
2020-12-19 15:37:01 -08:00
systemed
158d260cbb
Mention new script in changelog
2020-12-15 12:51:28 +00:00
systemed
83b17e664c
Update comments
2020-12-15 12:49:52 +00:00
xlaussel
89a9bc9d70
Undo changes to package-json.com :
...
Revert to master version
2020-12-14 08:38:31 +01:00
Denis Chapligin
b0a4ad92c4
Merge pull request #5887 from dburnsii/upgrade_libsol2_v2.20.6
...
Upgrade libsol2 v2.20.6
2020-12-13 22:55:44 +02:00
systemed
9a20e8e614
Profile debug script to fetch a way from OSM
2020-12-10 11:02:04 +00:00
Desone Burns II
af5efd2abb
Merge branch 'master' of github.com:Project-OSRM/osrm-backend into upgrade_libsol2_v2.20.6
2020-12-03 16:50:35 -07:00
Desone Burns II
9ae9a1f6d7
Fix table checks
2020-12-03 16:42:57 -07:00
Denis Chapligin
370081ec14
Merge pull request #5903 from bxl-forever/maxspeed-brussels
...
Update car.lua - new maxspeed default speed for Brussels, Belgium
2020-12-03 11:22:42 +02:00
bxl-forever
d340f4eabc
Update car.lua - new maxspeed default speed for Brussels, Belgium
...
Those new speeds apply by law as from Jan. 1, 2021 within the entire Brussels-Capital Region, one of the 3 regions of Belgium.
2020-12-02 13:32:12 +01:00
Desone Burns II
0e10b94d38
Merge branch 'master' of github.com:Project-OSRM/osrm-backend into HEAD
2020-12-01 19:24:11 -07:00
Desone Burns II
1a5e5df6bd
Use table lookup as boolean
2020-12-01 19:23:10 -07:00
Denis Chapligin
18a0f6c1f8
Merge pull request #5891 from mloskot/ml/check-indexed-data-for-empty-values
...
Avoid dereferencing iterators over empty indexed data values
2020-12-01 15:26:58 +02:00
Desone Burns II
8510d6850a
Cast string to number in Lua
2020-11-30 17:25:35 -07:00
Desone Burns II
566cf785f5
Initialize empty Lua object
2020-11-30 14:13:18 -07:00
xlaussel
687a3cdfbe
Merge branch 'master' into avoid_samelookup_in_heap_map
2020-11-26 21:29:27 +01:00
Daniel Patterson
50d9632ed7
Upgrade formatting to clang-format 10 ( #5895 )
...
* Update formatting tools to clang-format-10
* Reformat using clang-format-10.0.09
2020-11-26 07:21:39 -08:00
xlaussel
f376225080
Changed code failing when compiling asserts
2020-11-25 13:25:04 +01:00
xlaussel
fcb7dd2a21
format code
2020-11-25 12:42:01 +01:00
xlaussel
aa06029801
References removed for extracted heapNode: could lead to bugs because the same was sometimes modified after when relaxing outgoing edges
2020-11-25 11:22:30 +01:00
Desone Burns II
1ce573ef35
Fix lua nil for MacOS
2020-11-24 08:26:24 -07:00
Desone Burns II
cf13a9714d
clang-format-3.8 changed files
2020-11-24 08:06:26 -07:00
xlaussel
8697a6b14a
Changes and corrections before change request
...
Cucumber successfull
2020-11-24 12:43:08 +01:00
xlaussel
9a32722634
other improvements.
...
Variable renaming with better names
2020-11-24 11:05:11 +01:00
Desone Burns II
24d0af6faf
clang-format changed file
2020-11-23 17:12:13 -07:00
Desone Burns II
b1646622e6
Changed nil test to empty test
2020-11-23 17:07:10 -07:00
xlaussel
697c2ff88d
other improvements.
...
Variable renaming with better names
2020-11-23 23:11:41 +01:00
xlaussel
e181cb325c
other improvements.
...
Variable renaming with better names
2020-11-23 23:10:22 +01:00
xlaussel
41af9615cd
Improvements
2020-11-23 23:00:27 +01:00
xlaussel
13067844ee
Changes made
2020-11-23 22:33:08 +01:00
Desone Burns II
ca68518763
Remove context from get_nodes call
2020-11-23 13:24:44 -07:00
Desone Burns II
f6065de494
Added nil check to table conversion
2020-11-23 13:21:55 -07:00
Mateusz Łoskot
58fbda0483
Avoid dereferencing iterators over empty indexed data values
...
It seems the values can be empty even if size of blocks
is non-zero (e.g. blocks.size()==1)
2020-11-23 21:21:35 +01:00
Desone Burns II
e693b8963a
Remove unsigned 0 comparison
2020-11-19 17:15:17 -07:00
Desone Burns II
5b6e82fa9c
Revert "Copy nodes to lua table"
...
This reverts commit a7a088d416
.
2020-11-19 17:14:38 -07:00
Desone Burns II
a7a088d416
Copy nodes to lua table
2020-11-19 15:39:31 -07:00
Desone Burns II
43b920bfb5
Merge branch 'master' of https://github.com/Project-OSRM/osrm-backend into upgrade_libsol2_v2.20.6
2020-11-18 17:11:02 -07:00
Desone Burns II
deacc8fb5c
Update to sol2 v2.20.6
2020-11-18 17:01:43 -07:00
Denis Chapligin
a3f1c2afb0
Merge pull request #5882 from mjjbell/mbell/windows_contractor
...
Fix osrm-contract, tests, on Windows
2020-11-18 14:33:57 +02:00
Denis Chapligin
7e4fbaf4a8
Merge pull request #5884 from dburnsii/upgrade_libosmium_v2.15.6
...
Upgrade libosmium to v2.15.6
2020-11-18 10:41:28 +02:00
Desone Burns II
dfc1bfc27e
Upgrade libosmium to v2.15.6
2020-11-17 14:59:06 -07:00
Michael Bell
96acdaf0d5
Fix osrm-contract, tests, on Windows
...
As part of graph contraction, node renumbering leads to
in-place permuting of graph state, including boolean vector elements.
std::vector<bool> returns proxy objects when referencing individual
bits. To correctly swap bool elements using MSVC, we need to explicitly
apply std::vector<bool>::swap.
Making this change fixes osrm-contract on Windows.
We also correct failing tests and other undefined behaviours
(mainly iterator access outside boundaries) highlighted by MSVC.
2020-11-15 14:22:26 +00:00
Denis Chapligin
98fd17589d
Merge pull request #5868 from wangyoucao577/feature/unify-turn-index-dump
...
Unify .osrm.turn_penalties_index dump same with turn_weight_penalties/turn_duration_penalties
2020-11-10 11:20:55 +02:00
Denis Chapligin
21444ce7cb
Merge pull request #5878 from mjjbell/mbell/fix_windows_partition
...
Fix bit-shift overflow in MLD partition step for Windows builds
2020-11-09 11:43:14 +02:00