original_docstring: Converts exif dictionary to location history dictionary
docstring: Converts exif dictionary to location history dictionary
docstring_tokens: Converts exif dictionary to location history dictionary
code: def exif_data_to_loc_hist(dict_exif_in):
      """Converts exif dictionary to location history dictionary"""
      dict_exif_out = {'timestampMs': [], 'latitude': [], 'longitude': []}
      for i in range(len(dict_exif_in['timestampMs'])):
          if dict_exif_in['has_gps'][i]:
              dict_exif_out['timestampMs'].append(dict_exif_in['timestampMs'][i])
              dict_exif_out['latitude'].append(dict_exif_in['latitude'][i])
              dict_exif_out['longitude'].append(dict_exif_in['longitude'][i])
  
      return dict_exif_out
code_tokens: def exif_data_to_loc_hist ( dict_exif_in ) : dict_exif_out = { 'timestampMs' : [ ] , 'latitude' : [ ] , 'longitude' : [ ] } for i in range ( len ( dict_exif_in [ 'timestampMs' ] ) ) : if dict_exif_in [ 'has_gps' ] [ i ] : dict_exif_out [ 'timestampMs' ] . append ( dict_exif_in [ 'timestampMs' ] [ i ] ) dict_exif_out [ 'latitude' ] . append ( dict_exif_in [ 'latitude' ] [ i ] ) dict_exif_out [ 'longitude' ] . append ( dict_exif_in [ 'longitude' ] [ i ] ) return dict_exif_out
short_docstring: Converts exif dictionary to location history dictionary
short_docstring_tokens: Converts exif dictionary to location history dictionary
comment: """Converts exif dictionary to location history dictionary"""