themylogin
d9d873903f
Account merged edges when processing turn legs
2021-01-27 10:53:48 +01:00
themylogin
e7acc9df76
Fix turn.roads_on_the_left and turn.roads_on_the right for two-way roads #5128
2021-01-27 10:53:00 +01: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
Desone Burns II
9ae9a1f6d7
Fix table checks
2020-12-03 16:42:57 -07: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
Desone Burns II
566cf785f5
Initialize empty Lua object
2020-11-30 14:13:18 -07: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
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
Desone Burns II
24d0af6faf
clang-format changed file
2020-11-23 17:12:13 -07: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
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
deacc8fb5c
Update to sol2 v2.20.6
2020-11-18 17:01:43 -07:00
Jay Zhang
17eb39d0a9
fix: clangformat
2020-10-26 01:19:17 +00:00
Jay Zhang
7d28b7aa3a
feat: unify turn_penalties_index dump same with turn_weight_penalties and turn_duration_penalties
2020-10-23 09:38:56 +00:00
Michael Bell
d3ab6f1fca
Remove unused future
...
The serialization of the compressed node based graph was changed in
c410c2 to no longer be asynchronous.
This removes the unused future object.
2020-09-22 23:01:06 +01:00
Denis Chaplygin
03d9e7a8ce
Deprecated tbb::task_scheduler_init replaced with std::thread and tbb::global_control
2020-09-04 09:33:43 +03:00
Denis Chapligin
df9fda177d
Merge pull request #5384 from wangyoucao577/clean-comments
...
correct comments for "compress edge if it crosses a traffic signal"
2020-08-18 17:21:23 +03:00
Jay Zhang
d2e7e6e9e6
improve comment description
2020-08-12 15:18:58 +08:00
Tomonobu Saito
17f32f4ca1
fix coding format
2019-10-09 13:35:19 +09:00
Tomonobu Saito
542c3ba872
Add singletone class RasterCache to handle global cache data.
2019-10-09 13:02:59 +09:00
Tomonobu Saito
a587b14006
destruct static vector and unorderd_map when last RasterContainer is destructed.
2019-10-04 17:30:35 +09:00
Tomonobu Saito
a9fce74e63
remove unused code (debug code)
2019-10-04 14:02:57 +09:00
Tomonobu Saito
432d49e23d
bugfix: support multiple delimitor.
2019-10-04 13:50:13 +09:00
Tomonobu Saito
e4aaf07879
remove unused lines
2019-10-03 17:24:42 +09:00
Tomonobu Saito
d316ff9d41
Improvement of raster source loading to reduce consumed memory size.
2019-10-03 16:44:27 +09:00
Jay Zhang
ce33f1ae98
correct comments
2019-03-01 22:33:44 +08:00
Lev Dragunov
8b45ff7a18
Store metadata about original OSM data, and return it in the API response, if available.
2019-01-30 15:31:56 -08:00
Daniel Patterson
81bc2f41a6
When matching, ignore 'is_startpoint' propert, snap to any edge ( #5297 )
...
Includes all edges in the rtree, but adds an `is_startpoint` flag to each. Most plugin behaviour remains unchanged (non-startpoint edges aren't used as snapping candidates), but for map matching, we allow snapping to any edge. This fixes map-matching across previously non-is_startpoint edges, like ferries, private service roads, and a few others.
2018-12-13 17:10:32 -07:00
Daniel Patterson
498259b220
Replace dynamic distance calculation for table plugin with pre-calculated distances on shortcuts, avoiding unpacking cost.
...
Adds approx 10% to total data size. Speeds up large table requests by 2 orders of magnitude.
Co-authored-by: Kajari Ghosh <ghoshkaj@gmail.com>
2018-10-30 15:41:06 -07:00
Matthias Gilch
e5d8319c43
Removed unused variable
...
The variable name_data_mutex is declared in a block but never used
within this block. So I've removed the variable.
2018-06-02 22:49:30 +02:00
Michael Krasnyk
318df9deaa
Adjust ebn_weight assertion to new node weights
2018-05-01 18:53:04 +02:00
Michael Krasnyk
cacb162520
Review and rebase updates
2018-04-28 08:59:18 +02:00
Michael Krasnyk
fd9bebbfa7
Add EBG node durations
2018-04-28 08:59:18 +02:00
Michael Krasnyk
cdc7e5f021
Fix for updating node weights in contraction hierarchy
2018-04-28 08:59:18 +02:00
Daniel Patterson
282415bbc1
Honour British spelling of manoeuvre relation ( #5004 )
...
* Support British spelling of manoeuvre to comply with OSM standards.
2018-04-06 17:08:30 -07:00
Daniel Patterson
649d4ee512
Add support for the 'straight' maneuver direction ( #4995 )
...
Add support for the 'straight' maneuver direction
2018-04-03 17:20:18 -07:00
Patrick Niklaus
c0dd5d7c76
Fix formating
2018-03-26 11:02:34 +00:00
Patrick Niklaus
f2bace6c1f
Wrap lambda in std::function because of boost version issues
2018-03-26 11:02:33 +00:00
Patrick Niklaus
a52213c885
Get offset of data inside tar file
2018-03-26 11:02:33 +00:00
Patrick Niklaus
c410c200bd
Port .cnbg file to tar format
2018-03-26 11:02:33 +00:00
Patrick Niklaus
8152dcfb4c
Port .ramIndex to tar file and mmap .fileIndex directly
2018-03-26 11:02:33 +00:00
Patrick Niklaus
bed53f5fd5
Remove timestamp file
2018-03-26 11:02:31 +00:00
Patrick Niklaus
2b010fc6f3
Port .enw file to tar format
2018-03-26 11:02:04 +00:00
Patrick Niklaus
b8260e44fa
Port .names file to tar
2018-03-26 11:02:04 +00:00
Patrick Niklaus
f407afa694
Move .osrm file to tar format
2018-03-26 11:02:04 +00:00
Patrick Niklaus
06f28ffd34
Add BufferWriter/BufferReader and simplify interface for ConditionalRestrictions
2018-03-26 11:02:04 +00:00
Patrick Niklaus
990e411361
Port turn duration penalties to tar
2018-03-26 11:02:04 +00:00
Patrick Niklaus
5d7d5fceba
Port .tld and .tls data
2018-03-26 11:02:04 +00:00
Michael Krasnyk
d166fc6a75
Restructure Obvious Turn Handling, code transfer from #4426
2018-03-20 16:33:15 +01:00
Frédéric Rodrigo
14082d0e00
Fix typo 'Maximum number of classes if'
2018-03-14 03:16:13 +01:00
Michael Krasnyk
0fc8b6289c
Merge IntersectionShapeData and IntersectionEdgeGeometry
2018-03-05 13:19:57 +01:00
Michael Krasnyk
6f4af330ed
Handle oneways in get_forward_backward_by_key
2018-03-05 13:19:57 +01:00
Michael Krasnyk
83588fd00f
Renumber node IDs in .osrm.maneuver_overrides
2018-02-22 11:42:33 +01:00
Michael Krasnyk
5acf660f37
Check required tags of maneuver
relations
2018-02-21 14:49:15 +01:00
Michael Krasnyk
5f598da76d
Add OSM node barrier=height_restrictor handling
2018-02-12 11:40:35 +01:00
Daniel Patterson
5531cace7f
Support maneuver relations ( #4676 )
2018-02-10 05:32:09 +11:00
Patrick Niklaus
26e5c4eae2
Fix formating
2018-02-09 17:51:58 +01:00
Patrick Niklaus
84845ffaa6
Replace optional<EdgeWeight> with constant value
2018-02-09 17:51:58 +01:00
Patrick Niklaus
97d027a173
Fix unused lambda capture warnings
2018-02-09 17:51:58 +01:00
Patrick Niklaus
371dc57dfc
Fix uninitialized warning because of boost::optional
2018-02-09 17:51:58 +01:00
Huyen Chau Nguyen
fa8d788bb6
Add road priority class to turn function ( #4858 )
...
* expose road priority class to turn function
* update docs
2018-02-07 11:39:02 +01:00
Patrick Niklaus
b4cfc8d6e0
Fix formating
2018-02-06 11:51:33 +01:00
Patrick Niklaus
83d7a57b73
Remove OSM link debug printing from public class
2018-02-06 11:51:33 +01:00
Michael Krasnyk
9e93f198ae
Add CRC checksums to EBG and turns data
2018-02-02 11:33:38 -05:00
Michael Krasnyk
10de243556
Move guidance turn generation out of EBGF
2018-02-02 11:33:38 -05:00
Michael Krasnyk
988b6e3311
Split intersection analysis and guidance code
...
Intersection analysis occupy in osrm::extractor::intersection namespace
and guidance code osrm::guidance
2018-02-02 11:33:38 -05:00
Michael Krasnyk
36877e4de5
Move guidance pre-processing code into GUIDANCE library
2018-02-02 11:33:38 -05:00
Michael Krasnyk
1794185d43
Refine logging output
2018-02-02 11:33:38 -05:00
Kajari Ghosh
de938df560
remove TurnData from generate_edge function
2018-02-02 11:33:38 -05:00
Kajari Ghosh
e02c5c3c6d
comments
2018-02-02 11:33:38 -05:00
Michael Krasnyk
90ff725125
Duplicate edges and turns generation code
2018-02-02 11:33:38 -05:00
Mateusz Loskot
30ed1fae99
Move setting up task_scheduler_init from executables to library
...
Make entry points of individual pipeline stages responsible for
configuring the task scheduler with requested number of threads
passed in corresponding configuration bundle (ie. follow extractor).
2018-02-02 14:34:20 +01:00
Michael Krasnyk
91e6d68604
Increase MAXIMAL_ALLOWED_SEPARATION_WIDTH to 12 meters
...
the check should cover merging of roads at intersections similar
to https://www.openstreetmap.org/node/53020993#map=18/37.86590/-122.25083
2018-02-01 06:21:08 -05:00
Michael Krasnyk
77f8a4f741
Set type of trivial intersections where classes change to Suppressed
...
... instead of NoTurn
2018-01-25 11:43:44 -05:00
Huyen Chau Nguyen
61e06fcaba
Making the turn function more flexible ( #4789 )
...
* set and store highway and access classification for the turn function
* expose highway turn classification and access turn classification and speed to the lua profile turn function
* expose whether connection road at turn is incoming or outgoing
* add lua tests for exposed information to turn function
* update docs about attributes in process_turn
* add turn_classification info to docs
* adding warning if uturn and intersection dont match
* handle u turns that do not turn into intersection[0]
* split OSM link generation in an accessible coordinate function
2018-01-24 15:39:55 -05:00
Kajari Ghosh
155772f01f
Refactor isThroughStreet
/Intersection options ( #4751 )
...
* refactor isThroughStreet
* refactor HaveIdenticalName
* fix a typo in the unit tests
2018-01-19 13:49:00 -05:00
Michael Krasnyk
341a5345da
Ignore no_*_on_red turn restrictions ( #4804 )
2018-01-19 15:50:54 +01:00
Mateusz Loskot
5b2af6ef09
Restore use of user-provided osmium: 🧵 :Pool instance
...
Pool instance has been removed from Reader ctor parameters
list in PR #4438 , presumably unintentionally.
It is required to prevent potential deadlock during
Pool shutdown as explained in PR #4452 .
2018-01-07 18:29:43 +01:00
Michael Krasnyk
17eb7052ba
Make distance_between_roads symmetrical
2018-01-05 17:35:11 +01:00
Michael Krasnyk
08b88bad63
Still use low precision bearings
2018-01-05 17:35:11 +01:00
Michael Krasnyk
153f9b02a5
Add low precision intersection views back
2018-01-05 17:35:11 +01:00
Michael Krasnyk
0568dca4a3
Adjust to review findings
2018-01-05 17:35:11 +01:00
Michael Krasnyk
60ef179d18
Remove handling of U-turns on motorways
2018-01-05 17:35:11 +01:00
Michael Krasnyk
c64904f5ea
Move roads re-ordering to convertToIntersectionView
2018-01-05 17:35:11 +01:00
Michael Krasnyk
4b9e3a8068
Remove IntersectionGenerator
2018-01-05 17:35:11 +01:00
Michael Krasnyk
db7c76d04d
Remove GetConnectedRoads from IntersectionGenerator
2018-01-05 17:35:11 +01:00
Michael Krasnyk
cc1a5ea78d
Remove usage of IntersectionGenerator in EBGF
2018-01-05 17:35:11 +01:00
Michael Krasnyk
9c033ff461
Free functions for guidance intersections analysis
2018-01-05 17:35:11 +01:00
Mateusz Loskot
da4fb13aa3
Tidy up #include-s for Intel TBB headers
...
Remove unused and add missing headers.
2018-01-05 11:00:31 +01:00
Michael Krasnyk
a5353c7179
Use consistent EBG node weights in duplicated via nodes
2018-01-02 14:26:35 +01:00
Michael Krasnyk
3dec680058
Remove check unnamed check in sliproad handler
2017-12-26 16:18:27 +01:00
Patrick Niklaus
12d1d84b11
Add test case for sliproads converted from forks
2017-12-26 16:18:27 +01:00
Patrick Niklaus
e45d44cb8e
Make sure we only count turns as UTurns for the turn_function
2017-12-26 13:28:12 +00:00
karenzshea
9a8ed30e95
add assert for untested sliproad cases, removed redundant empty_nameid checks
2017-12-11 15:37:56 +00:00
karenzshea
4166b1ebbf
check for empty on string_ref, rather than string itself
2017-12-11 15:37:56 +00:00
karenzshea
89080fb2b0
check for empty name_id before getting data
2017-12-11 15:37:56 +00:00