~foxtrotgps-team/foxtrotgps/trunk

« back to all changes in this revision

Viewing changes to src/route.c

  • Committer: Paul Wise
  • Date: 2018-03-06 03:32:21 UTC
  • Revision ID: pabs3@bonedaddy.net-20180306033221-lzyia8y0cpw95j1b
Remove trailing whitespace

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
        }
272
272
}
273
273
 
274
 
/** 
 
274
/**
275
275
 * Find the bounding box of the given GSList containin waypoints.
276
276
 */
277
277
bbox_t
320
320
 * Save the route in GPX format to the given URI.
321
321
 */
322
322
void
323
 
save_route_as_gpx (const char *uri) 
 
323
save_route_as_gpx (const char *uri)
324
324
{
325
325
        int rc;
326
326
        xmlTextWriterPtr writer;
434
434
                     list = list->next, no++)
435
435
                {
436
436
                        waypoint_t *wp = list->data;
437
 
                        fprintf (tomtom, "%d|%d|WP%d|0\n", 
 
437
                        fprintf (tomtom, "%d|%d|WP%d|0\n",
438
438
                                 (int) (rad2deg (wp->lon) * 100000),
439
439
                                 (int) (rad2deg (wp->lat) * 100000),
440
440
                                 no);
456
456
 
457
457
        for (cur_node = node; cur_node; cur_node = cur_node->next)
458
458
        {
459
 
                if (cur_node->type == XML_ELEMENT_NODE)                 
 
459
                if (cur_node->type == XML_ELEMENT_NODE)
460
460
                {
461
461
                        if (xmlStrEqual (cur_node->name, BAD_CAST "rtept"))
462
462
                        {
485
485
 * Load a route from a given GPX file.
486
486
 */
487
487
GSList *
488
 
load_route_as_gpx (const char *file) 
 
488
load_route_as_gpx (const char *file)
489
489
{
490
490
        GSList *list = NULL;
491
491
        xmlDoc *doc = NULL;