WIP: [routing] User routes feature #8260

Draft
fgbg03 wants to merge 8 commits from fgbg03/user_routes_feature into master
fgbg03 commented 2024-05-23 12:37:36 +00:00 (Migrated from github.com)

Enables users to save, load, delete and rename routes stored in their devices.

Adds overloads of existing functions that handle saved route points.
These keep the same functionality but take in the name of the file as an argument.
Adds functions that use these overloads to save/ load/ check if user routes exist.

Adds User Interface for android devices.
A button on the map screen opens a bottom sheet to the user routes menu.
From this menu the currently displayed route can be saved and the saved routes can be loaded, deleted and renamed.

The test is just a simple draft I could not verify was running/ being added correctly to be run.
Adds testes for the backend.
The last test is commented because LoadRoutePoints uses Thread::Gui which I'm unable to use on the CLASS_UNIT_TEST.

Enables users to save, load, delete and rename routes stored in their devices. Adds overloads of existing functions that handle saved route points. These keep the same functionality but take in the name of the file as an argument. Adds functions that use these overloads to save/ load/ check if user routes exist. Adds User Interface for android devices. A button on the map screen opens a bottom sheet to the user routes menu. From this menu the currently displayed route can be saved and the saved routes can be loaded, deleted and renamed. ~~The test is just a simple draft I could not verify was running/ being added correctly to be run.~~ Adds testes for the backend. The last test is commented because LoadRoutePoints uses Thread::Gui which I'm unable to use on the CLASS_UNIT_TEST.
vng (Migrated from github.com) reviewed 2024-05-23 12:37:36 +00:00
rtsisyk reviewed 2024-05-23 12:37:36 +00:00
biodranik (Migrated from github.com) reviewed 2024-05-23 21:58:04 +00:00
biodranik (Migrated from github.com) commented 2024-05-23 21:58:04 +00:00

Is this line printed when you run ../omim-build-debug/map_tests binary?

Is this line printed when you run `../omim-build-debug/map_tests` binary?
fgbg03 (Migrated from github.com) reviewed 2024-05-23 22:07:24 +00:00
fgbg03 (Migrated from github.com) commented 2024-05-23 22:07:24 +00:00

Yes, thanks for pointing me to the binary. This way it shows up. I'll finish up the test in the morning.

Yes, thanks for pointing me to the binary. This way it shows up. I'll finish up the test in the morning.
fgbg03 (Migrated from github.com) reviewed 2024-05-26 16:06:46 +00:00
fgbg03 (Migrated from github.com) commented 2024-05-26 16:06:46 +00:00

This test has now been expanded to further tests

This test has now been expanded to further tests
biodranik (Migrated from github.com) requested changes 2024-08-12 19:07:30 +00:00
biodranik (Migrated from github.com) left a comment

Thanks! That is a different approach to the one we were discussing and planning in organicmaps/organicmaps#1785

In short:

  • A route should be saved into internal KML format in the C++ core, in the same way as other imported tracks are saved now (and as recorded tracks will be saved)
  • A route is different from tracks (e.g. it has stops, no elevation, no timing data. etc.)

This approach allows to:

  • share a route later in GPX, KML or even as an API url
  • restore and drive a route locally
  • easily delete a route
  • change route color
  • rename a route
  • move it into a different list/folder
Thanks! That is a different approach to the one we were discussing and planning in https://git.omaps.dev/organicmaps/organicmaps/issues/1785 In short: - A route should be saved into internal KML format in the C++ core, in the same way as other imported tracks are saved now (and as recorded tracks will be saved) - A route is different from tracks (e.g. it has stops, no elevation, no timing data. etc.) This approach allows to: - share a route later in GPX, KML or even as an API url - restore and drive a route locally - easily delete a route - change route color - rename a route - move it into a different list/folder
This repo is archived. You cannot comment on pull requests.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#8260
No description provided.