original_docstring: 
      Starts up the GPSPi runtime, begins listening for GPS Hat input,
      establishing a connection to a local CommPi via LAN, and sending data
      for transmission to the CommPi
      
docstring: Starts up the GPSPi runtime, begins listening for GPS Hat input,
  establishing a connection to a local CommPi via LAN, and sending data
  for transmission to the CommPi
docstring_tokens: Starts up the GPSPi runtime begins listening for GPS Hat input establishing a connection to a local CommPi via LAN and sending data for transmission to the CommPi
code: def handleGps():
      """
      Starts up the GPSPi runtime, begins listening for GPS Hat input,
      establishing a connection to a local CommPi via LAN, and sending data
      for transmission to the CommPi
      """
      gpsPi = GPSReader()
      client = WebClient()
  
      while True:
          print("gps loop")
          coords = gpsPi.get_geolocation()
          speed = gpsPi.get_speed_mph()
          if coords is not None:
              data = [coords, speed]
              for i in data:
                  payload = json.loads(json.dumps(i))
                  try:
                      client.send(payload)
                  except Exception as err:
                      print("Error transmitting gps data: {}".format(str(err)))
                      raise
                  time.sleep(1)
code_tokens: def handleGps ( ) : gpsPi = GPSReader ( ) client = WebClient ( ) while True : print ( "gps loop" ) coords = gpsPi . get_geolocation ( ) speed = gpsPi . get_speed_mph ( ) if coords is not None : data = [ coords , speed ] for i in data : payload = json . loads ( json . dumps ( i ) ) try : client . send ( payload ) except Exception as err : print ( "Error transmitting gps data: {}" . format ( str ( err ) ) ) raise time . sleep ( 1 )
short_docstring: Starts up the GPSPi runtime, begins listening for GPS Hat input,
  establishing a connection to a local CommPi via LAN, and sending data
  for transmission to the CommPi
short_docstring_tokens: Starts up the GPSPi runtime begins listening for GPS Hat input establishing a connection to a local CommPi via LAN and sending data for transmission to the CommPi
comment: """
      Starts up the GPSPi runtime, begins listening for GPS Hat input,
      establishing a connection to a local CommPi via LAN, and sending data
      for transmission to the CommPi
      """