33 Commits

Author SHA1 Message Date
Henry Sternberg
e3abbc712b [routing] Fix crash on 32-bit devices with conditional access
The deserialization of conditional road access data was using
size_t which is 8 bytes on 64-bit (where maps are generated)
but only 4 bytes on 32-bit devices. This caused stream
misalignment and eventual std::length_error when garbage data
was interpreted as a huge vector size.

Fix by using uint64_t to always read 8 bytes, matching what
64-bit build servers write.

Signed-off-by: Henry Sternberg <henry@bluelightmaps.com>
2026-01-09 11:15:38 +01:00
Viktor Govako
ffcb694961 [routing] Enable access conditional.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
(cherry picked from commit 6a2f2662b334345dc8789e970f358cec3ed69c85)
2026-01-08 14:59:02 +01:00
Henry Sternberg
3352fc13c1 Revert "[routing] Support conditional routing"
This reverts commit 718d0f726b.
2026-01-08 14:59:02 +01:00
Konstantin Pastbin
faf49fc574 [tts] Revert values changes done in #2752 4f739d98b
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-12-19 09:25:00 +07:00
thesupertechie
d56f9700f5 [tts] [routing] further revert out-of-scope changes
Signed-off-by: thesupertechie <thesupertechie1@gmail.com>
2025-12-16 07:27:59 +01:00
thesupertechie
cc042c3d1c [tts] [routing] revert out-of-scope changes
Signed-off-by: thesupertechie <thesupertechie1@gmail.com>
2025-12-16 07:27:59 +01:00
thesupertechie
4f739d98b0 [tts] Change notification to 400-700 m
Signed-off-by: thesupertechie <thesupertechie1@gmail.com>
2025-12-16 07:27:59 +01:00
Leonardo Bishop
a1cbcc5885 [drape] Base zoom level on distance to next turn
This commit changes the auto zoom level behaviour during navigation
to be based off the distance to the next turn, rather than naively
coupling it to the current speed. This will improve the navigation
experience during driving.

Signed-off-by: Leonardo Bishop <me@leonardobishop.net>
2025-12-08 08:31:33 +01:00
x7z4w
f98a0efa46 [tts] Fix invalid formatting
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-11-24 11:50:40 +00:00
x7z4w
0a3a4ebd9a [core] Regex refactoring
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-11-16 18:27:04 +01:00
x7z4w
90c12003bd [routing] Avoid paved roads
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-11-09 12:21:24 +01:00
Yannik Bloscheck
e0f8e043bb [indexer] Support for road shield parsing by highway class
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
2025-11-07 20:49:54 +01:00
x7z4w
42f059f8f7 [core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-10-28 22:11:19 +01:00
Jean-Baptiste
ae14c05559 Remove speed cameras for some countries
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
2025-10-25 18:22:00 +02:00
Yannik Bloscheck
cf1432cbf7 Remove speed cameras in Germany
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
2025-10-19 09:32:20 +02:00
x7z4w
fceb6e0b8a [routing] Avoid steps
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-10-13 20:07:31 +02:00
x7z4w
340b5ae3f9 [routing] Update mwm_hierarchy_handler
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
2025-10-12 10:59:49 +02:00
Henry Sternberg
ed37b6595e Amend route snapping distance for car
Signed-off-by: Henry Sternberg <henry@bluelightmaps.com>
2025-10-05 12:07:09 +01:00
Henry Sternberg
08adc592f7 [routing] Bicycle turn penalties
Signed-off-by: Henry Sternberg <henry@bluelightmaps.com>
2025-09-11 12:32:55 +00:00
Konstantin Pastbin
452f582d45 [core] Improve logging for routing sections loading
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-09-08 17:23:32 +02:00
Andrei Shkrob
c014e224b2 [routing] New API for lanes
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
2025-09-05 20:35:15 +02:00
Henry Sternberg
718d0f726b [routing] Support conditional routing
Signed-off-by: Henry Sternberg <henry@bluelightmaps.com>
2025-08-28 21:01:25 +02:00
Viktor Govako
b85c11ea5a [feature] Added RouteRelation and linked it with FeatureType.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2025-08-23 08:32:06 +02:00
David Martinez
1b04524d68 [routing] Log all turn notifications TTS
Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2025-08-22 19:19:00 +07:00
Viktor Govako
1a6bbd756a [routing] Simplify notifications on roundabout.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2025-08-22 19:18:39 +07:00
Alexander Borsuk
2aaf37e9ee C++ warning fixes
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-22 19:03:04 +07:00
Alexander Borsuk
55dc1e17e6 Correct is_space fix for Windows compatibility
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-22 18:59:37 +07:00
Konstantin Pastbin
3c4e0d05c5 [routing][tests] Comment changes on old maps after adding penalties code
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-21 17:26:46 +07:00
Viktor Govako
8d61c7447b [routing][tests] Added "agricultural" roads test.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2025-08-18 09:07:05 +02:00
Viktor Govako
b107638b8b [routing] SaveRoute minor fixes and CHECK.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2025-08-18 09:07:05 +02:00
Henry Sternberg
c59b63d784 [routing] OSM tag based time and turn penalties
Signed-off-by: Henry Sternberg <dev@bluelightmaps.com>
Co-Authored-By: eisa01 <eisa01@gmail.com>
Co-Authored-By: x7z4w <x7z4w@noreply.codeberg.org>
Co-Authored-By: Yannik Bloscheck <git@yannikbloscheck.com>
2025-08-17 19:40:00 +02:00
Konstantin Pastbin
bfffa1fff4 Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-08-17 14:32:37 +07:00
Alexander Borsuk
76ffc99abd New cpp folder structure
Signed-off-by: Alexander Borsuk <me@alex.bio>
2025-08-14 20:52:04 +07:00