osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.63k stars 1.01k forks source link

When changing a recorded track's name before saving, use that name in GPX, too #20211

Closed sjvudp closed 1 month ago

sjvudp commented 3 months ago

Describe the idea (required)

When I change the suggested name at the end of a track recording, the name entered is being used to save the file, but the name inside the GPX file is not changed from the suggested one. It would be much more consistent to use the same name inside GPX and for file name.

I'm talking about

  <metadata>
    <name>2024-06-15_15-31_Sat</name>
  </metadata>

being saved as 2024-06-15_15-31_Something_Else.gpx (for example)

Tell us about the expected behaviour (required)

The name used to save the file should be the name stored inside GPX.

Tell us about alternatives you've considered (required)

Editing the GPX file to make the name match.

Context (optional)

No response

Rowin63 commented 3 months ago

Some other apps read/display this name tag (like TTQV does) and not the given file´s name, so it´s always a little bit confusing, having different names for the same track, without editing every single track by an external editor ...

yuriiurshuliak commented 3 months ago

The bug has been reproduced. To reproduce it, record a track using the Trip recording feature and give it a custom name. After recording, export the track using the Share function. Open the exported file in Notepad, and you will see that the custom name you specified is not displayed. Instead, it shows the default name, which includes the date and time of the recording.

OsmAnd~ 4.8.0#2652m, released: 2024-07-02

photo_2024-07-02_12-26-21

Rowin63 commented 2 months ago

Not only at recording, also when saving a planned/created trip, both "route" and "track" names inside the gpx file remain as "creating date" and are not changed to the given name.

DmitryAlexei commented 1 month ago
hrdl-github commented 3 weeks ago

On OsmAnd Nightly 4.9.0#3153m, released 2024-09-09 renaming and "saving as new track" differ in behaviour. Creating a track, completing it, renaming it and then sharing it results in gpx.metadata.name containing the intended name, while gpx.trk.name still contains the original date. Creating a track, selecting the "Save as new track" option and sharing the resulting track causes gpx.metadata.name to be empty (<name></name>) and gpx.trk.name to contain the intended name.