title: GPX parsing. Calculate Speed. Python
body: <p>I am trying to analyze the speed of every point GPS gathered data. I am using gpxpy and I have gotten to print out a few things such as max speed, start and end time, moving time, etc from a gpx file, but I do not know how to print the speed,lat,long, etc for every point. The gpx file I have has 462 points and I would like to know more about each point. The code I have is below:</p>
  
  <pre><code>def print_gpx_part_info(gpx_part, indentation='    '):
  """
  gpx_part may be a track or segment.
  """
  length_2d = gpx_part.length_2d()
  length_3d = gpx_part.length_3d()
  
  moving_time, stopped_time, moving_distance, stopped_distance, max_speed = gpx_part.get_moving_data()
  print('%sTotal Moving time: (hr/min/sec) %s' % (indentation, format_time(moving_time)))
  #print('%sStopped distance: %sm' % stopped_distance)
  #print('%sMax speed: %sm/s = %skph' % (indentation, max_speed, max_speed * 60. ** 2 / 1000. if max_speed else 0))
  print('%sMax speed: %smph' % (indentation,  max_speed * 2.3694 if max_speed else 0))
  
  start_time, end_time = gpx_part.get_time_bounds()
  print('%sStarted: %s' % (indentation, start_time))
  print('%sEnded: %s' % (indentation, end_time))
  
  points_no = len(list(gpx_part.walk(only_points=True)))
  print('%sPoints: %s' % (indentation, points_no))
  
  print('')
  
  def print_gpx_info(gpx):
  print('File: %s' % gpx_file)
  
  if gpx.name: 
      print('  GPX name: %s' % gpx.name)
  if gpx.description:
      print('  GPX description: %s' % gpx.description)
  
  print_gpx_part_info(gpx)
  
  for track_no, track in enumerate(gpx.tracks):
      for segment_no, segment in enumerate(track.segments):
          print '    Track #%s, Segment #%s' % (track_no, segment_no)
          print_gpx_part_info(segment, indentation='        ')
  </code></pre>
  
  <p>Any suggestions would be greatly appreciated. Thank You in advance.</p>