Harmonize track desc display
All checks were successful
Deploy Spot / deploy (push) Successful in 43s

This commit is contained in:
2026-06-15 01:25:59 +02:00
parent aa17ea99a2
commit a127535b36
19 changed files with 160502 additions and 160231 deletions

View File

@@ -77,6 +77,11 @@ class GeoJson extends Geo {
)
);
if($sType != 'hitchhiking' && str_contains($asTrackProps['desc'], ' ➜ ')) {
list($sFrom, $sTo) = explode(' ➜ ', $asTrackProps['desc']);
$asTrack['properties']['leg'] = ['from'=> $sFrom, 'to'=> $sTo];
}
//Track points
$asTrackPoints = $asTrackProps['points'];
$iPointCount = count($asTrackPoints);