I'm using gpxlogger to output my current location
on startup it outputs
Code:
<?xml version="1.0" encoding="utf-8"?>
<gpx version="1.1" creator="navsys logger"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1.1"
xsi:schemaLocation="http://www.topografix.com/GPS/1/1
http://www.topografix.com/GPX/1/1/gpx.xsd">
<metadata>
<name>NavSys GPS logger dump</name>
<author>Amaury Jacquot</author>
<copyright>BSD or GPL v 2.0</copyright>
</metadata>
<trk>
<trkseg>
<trkpt lat="11.111111" lon="-2.222222">
<ele>nan</ele>
<time>2010-08-31T11:10:41Z</time>
<fix>2d</fix>
</trkpt>
I would like to extract <trkpt lat="11.111111" lon="-2.222222"> ie whatever numbers/characters are between "" in lat= and lon=
so it outputs
http://maps.google.com/maps?q=11.111111,-2.222222