mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
feat(roadtrip): draw corridor hits on the map and build the day in one request
Three things the first cut got wrong. Switching into road trip mode took its time: every leg was its own routing request, paced a second apart so the shared hosts would answer at all. The router already returns a leg per consecutive pair of the waypoints it is handed, so a day is now one request — split only where the travel mode changes, because one request carries one mode. Answers that come from the cache are no longer paced at all, which is what made returning to the view feel broken. A list of petrol stations is half an answer: which one is on your side of the road is the other half. The corridor search therefore moved out of the panel into the planner, and its hits are handed to the map like any other place suggestion — grey, because they are not part of the trip until you add one. The explore pill stands down while the mode is on: it draws into the same channel and answers the same question for a drive. The panel itself was a stack of controls without an order. It now reads as header, search, results: what is being searched (with the day's distance and driving time), what is being looked for, how far off the route, then the hits grouped by kind with a count — and a progress bar while the boxes are being worked through.
This commit is contained in:
@@ -11,6 +11,11 @@ const roadtrip: TranslationStrings = {
|
||||
'roadtrip.stops.label': 'محطات على الطريق',
|
||||
'roadtrip.stops.remove': 'إزالة المحطة',
|
||||
'roadtrip.poi.title': 'على طول المسار',
|
||||
'roadtrip.poi.hint': 'ابحث على طول مسار اليوم عمّا تحتاجه في الطريق.',
|
||||
'roadtrip.poi.scope': 'اليوم',
|
||||
'roadtrip.poi.looking': 'المطلوب',
|
||||
'roadtrip.poi.searchingHint': 'جارٍ البحث على طول المسار…',
|
||||
'roadtrip.poi.found': '{count} على الطريق',
|
||||
'roadtrip.poi.fuel': 'وقود',
|
||||
'roadtrip.poi.charging': 'شحن',
|
||||
'roadtrip.poi.rest': 'استراحة',
|
||||
|
||||
Reference in New Issue
Block a user