Open vpdjgeo opened 1 year ago
This is a simple 1 liner - in Exporter / CacheturDotNoExporter.php (https://github.com/mirsch/lab2gpx/blob/master/src/Exporter/CacheturDotNoExporter.php)
Replace:
$cacheturDotNo .= $code . ';lab;' . $coordinate->format($formatter) . ';' . $waypointTitle . "\n" ;
With:
$cacheturDotNo .= $code . $waypointTitle . ';lab;' . $coordinate->format($formatter) . ';' . $waypointTitle . "Q: " . $wpt['Question'] . "\n" ;
or get a little fancy and use:
if ($values['includeQuestion'] && isset($wpt['Question'])) {
$cacheturDotNo .= $code . $waypointTitle . ';lab;' . $coordinate->format($formatter) . ';' . $waypointTitle . "Q: " . $wpt['Question'] . "\n" ;
} else {
$cacheturDotNo .= $code . ';lab;' . $coordinate->format($formatter) . ';' . $waypointTitle . "\n" ;
}
It would be wonderful if you could extract the question for the steps for the LAB caches and place them into the Comment line for each lab stop in the output lines for Cachetur Bulk Adds.
Current output: LCDRDG01;lab;N 38° 19.050′ W 077° 30.294′;Welcome to Virginia : S1 The Virginia Tourist Motto
For example from the XML - Question:<br />Virginia is for<
Revised Output: LCDRDG01;lab;N 38° 19.050′ W 077° 30.294′;Welcome to Virginia : S1 The Virginia Tourist Motto -- Question: Virginia is for