Searching for GPS coordinates within Text object

vlcty's icon

Hi there,

I've got a text object full of coordinates from a GPX file. I want to find all lines with coordinates on them, then extract just the coordinates (and the time data if possible!) from those lines into a useful list of data.

Here is an extract of the the GPX file, to show the formatting:


</trkpt>

<trkpt lat="60.5645310" lon="-0.0745460">

<ele>24.8</ele>

<time>2024-11-14T08:46:03Z</time>

<extensions>


Can anyone point me in the right direction to solve this? I've tried regexp but found the language very confusing!

Thanks in advance

xx

Source Audio's icon

if ou substitute > < = with space,

lat, lon, ele and time will become routable

Wil's icon

or this way ;-)

really difficult to substitute <>= with a space

Max Patch
Copy patch and select New From Clipboard in Max.

(had to fake that negative number)

Source Audio's icon

....................................................

vlcty's icon

Thanks so much! Used a combination of both of these and it's working nicely :)