Commit Graph

826 Commits

Author SHA1 Message Date
Siarhei Fedartsou
96ae1e1320 wip 2024-06-10 22:46:30 +02:00
Siarhei Fedartsou
88708eedb0 Merge branch 'master' into sf-re-use-heap-in-getNetworkDistance 2024-06-10 22:41:39 +02:00
Siarhei Fedartsou
fb9d1cefcc
Get rid of boost::math::constants::* and M_PI in favor of std::numbers (#6916) 2024-05-30 19:40:56 +02:00
Dennis Luxen
a9b1bd88d3
Remove all core-CH left-overs (#6920)
* Remove all core-CH left-overs

* Fix formatting

* Update CHANGELOG.md
2024-05-30 17:13:44 +02:00
Siarhei Fedartsou
cd4de34f5f wip 2024-05-29 08:24:25 +02:00
Siarhei Fedartsou
39c74498f7 wip 2024-05-28 21:08:01 +02:00
Siarhei Fedartsou
5b26eac258 wip 2024-05-28 20:41:59 +02:00
Siarhei Fedartsou
dcd615ef2a reproduced 2024-05-28 19:37:11 +02:00
Siarhei Fedartsou
98e8c2e06c reproduced 2024-05-28 19:24:53 +02:00
Siarhei Fedartsou
c1ed73126d
Use std::variant instead of mapbox::util::variant (#6903) 2024-05-28 18:52:49 +02:00
Siarhei Fedartsou
1a6f4c44e7
Fix performance-type-promotion-in-math-fn clang-tidy warning (#6908) 2024-05-27 08:33:05 +02:00
Siarhei Fedartsou
3eaa676626 wip 2024-05-26 12:36:45 +02:00
Siarhei Fedartsou
8b34d5b40c wip 2024-05-26 12:19:58 +02:00
Siarhei Fedartsou
49cf294d2f Merge branch 'master' into sf-re-use-heap-in-getNetworkDistance 2024-05-26 11:55:18 +02:00
Dennis Luxen
babdced52f
Replace GCC-specific attribute with [[nodiscard]] attribute (#6899) 2024-05-24 20:34:04 +02:00
Siarhei Fedartsou
21607e0cb2
Optimise getNetworkDistance in MLD even more (#6884) 2024-05-23 20:46:13 +02:00
Dennis Luxen
51b74a99aa
Avoid copy of std::function-based callback in path unpacking (#6895)
* Avoid copy of std::function-based callback in path unpacking

* Fix formatting

* Update CHANGELOG.md
2024-05-23 18:51:51 +02:00
Mugr Rex
efe6840d08
Replace boost::optional with std::optional (#6611) 2024-05-22 14:58:07 +02:00
Siarhei Fedartsou
45f64e672f Draft: re-use forward heap in map matching 2024-05-21 20:41:25 +02:00
Siarhei Fedartsou
a37f43bf3f use constexpr if 2024-05-21 20:36:16 +02:00
Siarhei Fedartsou
e562d34639 use constexpr if 2024-05-21 20:31:34 +02:00
Siarhei Fedartsou
e1d6a10fc6 use constexpr if 2024-05-21 20:29:12 +02:00
Siarhei Fedartsou
6b4665c7b2 use constexpr if 2024-05-21 20:23:56 +02:00
Siarhei Fedartsou
7e2fd63f0a use constexpr if 2024-05-21 20:10:27 +02:00
Siarhei Fedartsou
ee7dcbbb5b use constexpr if 2024-05-21 19:55:36 +02:00
Siarhei Fedartsou
09211b76e0 use constexpr if 2024-05-21 19:42:44 +02:00
Siarhei Fedartsou
edc4522f9b use constexpr if 2024-05-21 19:29:42 +02:00
Siarhei Fedartsou
5d2cd4d0f2 use constexpr if 2024-05-21 19:26:43 +02:00
Siarhei Fedartsou
cd2178905f use constexpr if 2024-05-20 18:49:44 +02:00
Siarhei Fedartsou
d0ff3088e2 use constexpr if 2024-05-20 18:34:13 +02:00
Siarhei Fedartsou
cc423f1de5 Optimise getNetworkDistance in MLD even more 2024-05-20 12:51:31 +02:00
Siarhei Fedartsou
d259848456
Optimise R-tree queries in the case of map matching (#6881) 2024-05-20 12:32:40 +02:00
Siarhei Fedartsou
ee8e0f890a
Optimise path distance calculation in MLD map matching (#6876) 2024-05-11 16:30:43 +02:00
Michael Bell
ffc39b8ad2
Clarify use of forcing routing steps (#6866)
The change clarifies the conditions for forcing routing steps and
simplifies the codebase to support it.

- Makes explicity  the search runtime condition for forcing a routing
step. Namely, the node is a source of the forward and reverse searches,
and it's one of the pre-identified nodes that requires a step to
be forced.
- Consolidate the two lists of force nodes into one. Not only is there
no algorithmic value in separating the nodes by geometric direction,
the  improvements to via-routes with u-turns mean atleast one of these
lists will be empty for any search.
- Rename 'force loop' to 'force step'. This moves the code away
from the original CH-specific language for checking for self-loops
in the case where this condition is met. MLD does not have loops.

Additional cucumber tests are added to cover the logic related to
negative search weights and forcing routing steps on via-route
paths.
2024-05-10 22:00:24 +01:00
Dennis Luxen
7f9d591ab7
Upgrade clang-format to version 15 (#6859) 2024-05-06 09:14:46 +02:00
Michael Bell
b503e96a98
Remove force-loop checks for routes with u-turns (#6858)
Each leg of a via-route supporting u-turns does not need to consider
force-loops. Negative weight checks are sufficient to prevent
incorrect results when waypoints are on the same edge.
2024-05-05 21:56:01 +01:00
Michael Bell
8ef366e061
Add support for opposite approach request parameter (#6842)
* Added approach on the opposite side of the road.

* Additional test and docs coverage for opposite approach

---------

Co-authored-by: Aleksandrs Saveljevs <Aleksandrs.Saveljevs@gmail.com>
2024-04-03 19:59:15 +01:00
Whytro
3f9347cfb2
Fix operator overload on RouteParameters (#6646)
* Fix operator overload on RouteParameters
2023-08-19 21:48:15 +01:00
Michael Bell
db7946d762
Add support for disabling feature datasets (#6666)
This change adds support for disabling datasets, such that specific
files are not loaded into memory when running OSRM. This enables users
to not pay the memory cost for features they do not intend to use.

Initially, there are two options:
- ROUTE_GEOMETRY, for disabling overview, steps, annotations and waypoints.
- ROUTE_STEPS, for disabling steps only.

Attempts to query features for which the datasets are disabled will
lead to a DisabledDatasetException being returned.
2023-08-04 18:43:37 +01:00
Whytro
72da455185
Allow -1.0 as unlimited for default_radius value (#6599) 2023-05-31 07:52:35 +02:00
Whytro
d51631401e
Add support for a default_bearing_radius flag (#6575) 2023-03-24 16:49:33 +01:00
Dennis Luxen
7c06726a35 Fix formatting 2022-12-20 18:00:11 +01:00
Dennis Luxen
a4aa153ba4 Use nested namespace
It's a mechanical change to modernize the code base
2022-12-11 10:17:17 +01:00
Dennis Luxen
f983d626ac Merge remote-tracking branch 'origin/master' into dl_using_keyword 2022-12-10 16:02:53 +01:00
Dennis Luxen
8bff55cd85 [CPP17] Modernize: Replace typedef with using statements 2022-11-06 13:21:45 +01:00
Dennis Luxen
565959b389 Remove util/string_view header 2022-10-30 20:01:46 +01:00
Dennis Luxen
5c9d0d152c Remove usage of StringView typedef 2022-10-30 19:53:26 +01:00
Dennis Luxen
d06b23d819 More fixes 2022-10-30 14:08:17 +01:00
Dennis Luxen
91e9623b31 Fix formatting 2022-10-30 14:06:19 +01:00
Dennis Luxen
0021ccef59 Replace boost::string_ref with std::string_view 2022-10-30 13:59:59 +01:00