code: func (s *Restore) Coordinates(idx uint64, updates structs.Coordinates) error {
  	for _, update := range updates {
  		// Skip any bad data that may have gotten into the database from
  		// a bad client in the past.
  		if !update.Coord.IsValid() {
  			continue
  		}
  
  		if err := s.tx.Insert("coordinates", update); err != nil {
  			return fmt.Errorf("failed restoring coordinate: %s", err)
  		}
  	}
  
  	if err := indexUpdateMaxTxn(s.tx, idx, "coordinates"); err != nil {
  		return fmt.Errorf("failed updating index: %s", err)
  	}
  
  	return nil
  }
docs: // Coordinates is used when restoring from a snapshot. For general inserts, use
  // CoordinateBatchUpdate. We do less vetting of the updates here because they
  // already got checked on the way in during a batch update.