Commit graph

569 commits

Author SHA1 Message Date
cyber-toad
04eb9642bb [bookmarks] Share single track
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
2025-02-22 14:10:51 +03:00
83df1e5004 [map] review fixes
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-02-21 14:38:11 -03:00
1783c90714 [map] move the track stats calc logic from ElevationInfo to the TrackStatistics
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-02-21 14:38:11 -03:00
2d410d127b [map] remove unused code from the GpsTrackCollection
GpsTrackCollection has two methods to add: point and points.
The first one is used only once time in the unit test and removed to simplify the adding logic.
RemoveUntil is not used.

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-17 14:11:52 -03:00
7f54b9306d [map] fill PP header info with track info
The GetAddress is changed to the GetSecondarySubtitle because the 4th line in the header contains address for bookmarks or distance+duration for tracks
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-11 13:20:10 +04:00
ab128bbaeb [map] refactor ElevationInfo and implement it as a Track property
1. filling ElevationInfo with data properties is removed because there is no such data for tracks in the data
2. elevation profile is initialized only with the MultiGeometry because it shouldn't know about any other info exept the lengths, altitudes and timestamps
3. data is calculated as concatenation of all geometry segments (not the 1st one as in old implementation)

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-12-11 13:20:10 +04:00
Kiryl Razhdzestvenski
99075d76ef Issue 391. Add setting for change map language.
Signed-off-by: Kiryl Razhdzestvenski <kirill.rozh@gmail.com>
2024-11-06 16:14:24 -03:00
3e50f646fc [map] remove Duration and File Rotation from the track recording
Because of the `RecentPath` feature was replaced with the `TrackRecording`
the the file's tail shouldn't be truncated by the system. User can record
track for more than 24h. This is why the `Duration`, `TruncFile` and `m_maxItemCount`-rleated code
was removed.

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-10-15 12:32:12 -03:00
Andrew Shkrob
1a2b176a4d [data] Move test data into a separate folder
Signed-off-by: Andrew Shkrob <andrew.shkrob.social@yandex.by>
2024-10-06 15:49:08 -03:00
9b490968e1 [map] fix map_tests
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-09-03 17:50:20 +02:00
4a2135042d [kml] add timestamps vector to the MultiGeometry
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-09-03 17:50:20 +02:00
Alexander Borsuk
a2d059da91 Replaced GpsTrackInfo with GpsInfo
TODO: There is an inefficient copying in void GpsTrackFilter::Process
that can be refactored

Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-08-27 11:50:16 +02:00
Alexander Borsuk
4d0ae85720 Renamed m_speedMpS to m_speed because MpS can be read as Miles per second or Meters per second
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-08-27 11:50:16 +02:00
8bbe3dc9c1
[Android] OAuth2 flow with browser V2 (#9044)
* [Android] Implemented OAuth2 flow with browser

Signed-off-by: S. Kozyr <s.trump@gmail.com>

* [Android] Small improvements

Signed-off-by: S. Kozyr <s.trump@gmail.com>

* Small changes according to PR comments.

Signed-off-by: S. Kozyr <s.trump@gmail.com>

---------

Signed-off-by: S. Kozyr <s.trump@gmail.com>
2024-08-21 16:58:02 +02:00
a639a94753 [bookmarks] [tests] unit tests for the recently deleted feature
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-08-15 12:59:33 +02:00
ea7a17ba68 [bookmarks] delete category files by moving to the .Trash dir
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-08-15 12:59:33 +02:00
Alexander Borsuk
296ce69fe0 [C++20] Use starts_with and ends_with
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-06-07 13:11:00 -03:00
cyber-toad
6e2fb9d5f8 [gpx] Add export buttons in Android and iOS
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
2024-05-30 08:08:02 +02:00
David Martinez
1276dc76f2 [styles] Rename styles to default/vehicle/outdoors + light/dark
clear/style-clear    -> default/style-light
clear/style-night    -> default/style-dark
vehicle/style-clear  -> vehicle/style-light
vehicle/style-night  -> vehicle/style-dark
outdoors/style-clear -> outdoors/style-light
outdoors/style-night -> outdoors/style-dark

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2024-05-23 00:16:43 -03:00
Kiryl
4ce2c6ae78
[bookmarks] Reuse the MarkGroupId during the category reloading (#8234)
[bookmarks] reuse category id for files with the same name

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-05-21 23:28:22 -03:00
Alexander Borsuk
59edac26f4 Updated tests for sorting by name
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-04-04 09:05:59 +03:00
Alexander Borsuk
4655ea66eb Set last modified time for imported KML or GPX before saving them
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-03-17 17:16:56 +01:00
d641b8dc2e [bookmarks] [tests] fix bug when Bookmarks_SpecialXMLNames is working with unsorted IDs list
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-03-17 11:54:47 -03:00
0969987c91 [bookmarks] [tests] replace 'GetUnsortedBmGroupsIdList.count' with 'GetBmGroupsCount'
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-03-17 11:54:47 -03:00
d3a8ecf19d [bookmarks] rename bmGroupsIdList into unsortedBmGroupsIdList
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2024-03-17 11:54:47 -03:00
cyber-toad
985d9afb43 [bookmarks] Add code to export multiple files
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
2024-02-28 09:34:38 +02:00
Gerion Entrup
120fc559be [map] Fix compilation with GCC for bookmarks_test.
Without this commit, it just compiles with Clang.

Signed-off-by: Gerion Entrup <gerion.entrup@flump.de>
2023-12-13 14:46:19 -03:00
cyber-toad
b3702a730d [kml] Load all kmls from kmz file
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
2023-12-12 19:14:15 -03:00
8930a32c20 [coding] UrlDecode the plus sign '+' as a space
`123+Main+St,+Seattle,+WA+98101` is equvivalent to
`123%20Main%20St,%20Seattle,%20WA+98101` and should be decoded as
`123 Main St, Seattle, WA 98101`.

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-23 07:31:55 +02:00
ca049dc4f2 [map][android][ios] Support geo:0,0?q=Search string URLs
New URLs/APIs:

- `geo:35.341714,33.32231` - show a point
- `geo:35.341714,33.32231 (Custom%20Title)` - show a point with title
- `geo:0,0?q=35.341714,33.32231` - show a point
- `geo:0,0?q=35.341714,33.32231 (Custom%20Title)` - show a point with title
- `geo:35.3381607,33.3290564?q=Kyrenia%20Castle` - search for something
- `geo:0,0?q=Kyrenia%20Castle` - search for something

Android testing:

```
adb shell am start -a android.intent.action.VIEW -d '"geo:35.3381607,33.3290564?q=Where%20to%20eat"'
```

iOS testing:

```
xcrun simctl openurl booted 'geo:35.3381607,33.3290564?q=Where%20to%20eat'
```

Closes #320

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2023-11-21 18:13:26 -03:00
9d81b44e7b [core] Remove zoom argument from FeatureType::DebugString()
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2023-10-20 14:34:08 -03:00
eb179d3ede Fixed GPX files import
Signed-off-by: S. Kozyr <s.trump@gmail.com>
2023-10-03 00:39:32 +02:00
Andrew Shkrob
271a796c5f [cmake] Add CTest
Signed-off-by: Andrew Shkrob <andrew.shkrob.social@yandex.by>
2023-07-18 17:13:41 -03:00
cyber-toad
67aa775abb
[gpx] Use string_view for bookmark file extensions (#5284)
* [gpx] Use string_view for bookmark file extensions

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* Fixed string_view to string conversion

Signed-off-by: Alexander Borsuk <me@alex.bio>

* Follow-up fixes

Signed-off-by: Alexander Borsuk <me@alex.bio>

* Review fixes

Signed-off-by: Alexander Borsuk <me@alex.bio>

* Compile fix

Signed-off-by: Alexander Borsuk <me@alex.bio>

* append does not create a temporary :)

Signed-off-by: Alexander Borsuk <me@alex.bio>

* Avoid duplicate path

Signed-off-by: Alexander Borsuk <me@alex.bio>

---------

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
Signed-off-by: Alexander Borsuk <me@alex.bio>
Co-authored-by: Alexander Borsuk <me@alex.bio>
2023-06-14 14:16:39 +02:00
cyber-toad
dce7c2186d
[Draft] [gpx] Add gpx import (#5166)
* [gpx][ios] Add GPX to OMaps.plist

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [gpx][android] Add GPX to AndroidManifest.xml

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [gpx] Add serdes_gpx

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [gpx] Add GPX to bookmark_helpers

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [gpx][android] Add GPX to Framework.cpp

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [gpx] Add GPX test

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>

* [android] Adjust gpx filter
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Update test and manifest
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Apply code-review suggestions
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Add basic parser tests for real gpx tracks
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Remove unused code, add test for waypoints only
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Support of gpx route (rte/rtept tag)
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Rework parser to use string_view
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Remove unsupported parameters

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Add support for <color> tag

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Fix name/description extraction
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Implement code-review suggestions

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Extract track & category names from file name

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

* [gpx] Implement code-review suggestions

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>

---------

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
Co-authored-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
2023-06-04 19:14:43 +02:00
Alexander Borsuk
718c78fbc8 Fix unqualified call to std::move warning
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-04-29 14:53:39 +02:00
Viktor Govako
a6e5e2b914 Removed useless includes.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2023-01-29 12:19:24 -03:00
Viktor Govako
a4504b3138 [kml] Moved kml test files into data/kml_test_data folder.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-12-17 08:38:37 +01:00
Viktor Govako
dad1da27f8 [kml] Filter duplicating ListString points like 2D.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-12-01 13:42:18 +03:00
Viktor Govako
a52cc891e2 [kml] Support multiple track geometry.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-12-01 13:42:18 +03:00
Viktor Govako
1f83266198 [bookmarks] Avoid useless savings on startup.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-10-23 08:08:11 +03:00
c50eee5863 [android][api] Add cll=lat,lon argument to Crosshair API
```
adb shell am start -a android.intent.action.VIEW -d '"om://crosshair?appname=qqqqqqq&cll=35.174897,33.363857"'
```

Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-10-08 07:34:09 +03:00
Alexander Borsuk
38af9ddb06 Do not strip non-ASCII characters from exported bookmarks
Signed-off-by: Alexander Borsuk <me@alex.bio>
2022-10-07 17:53:56 +03:00
Viktor Govako
339fa2f2cd [bookmarks] Fixed last modified time categories order.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-08-30 12:29:36 +03:00
Viktor Govako
4090cecb69 [bookmarks] Took out helper code from BookmarkManager.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-08-28 18:01:55 +03:00
Viktor Govako
b5ddf829b6 [tests] Updated map country exceptions.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-08-18 23:19:57 +03:00
514681f123 [android] Custom title for om://crosshair API
Signed-off-by: Roman Tsisyk <roman@tsisyk.com>
2022-07-25 16:23:24 +02:00
Viktor Govako
aaa21c848e [routing] Store one (not three!) MwmHandle for feature's geometry.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-05-12 19:55:01 +03:00
Viktor Govako
63291b1964 [planet] New data from 220415.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-04-23 12:39:40 +03:00
Viktor Govako
752e4c6508 [storage] Minor code prettify and fixes.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2022-04-19 16:18:55 +03:00